projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4172c7
)
[ELF] Move InputSectionBase::rawData member [NFC]
author
Greg McGary
<gkm@rivosinc.com>
Tue, 10 May 2022 03:41:08 +0000
(20:41 -0700)
committer
Greg McGary
<gkm@rivosinc.com>
Tue, 10 May 2022 04:20:14 +0000
(21:20 -0700)
lld/ELF/InputSection.h
patch
|
blob
|
history
diff --git
a/lld/ELF/InputSection.h
b/lld/ELF/InputSection.h
index
912b969
..
e9b1ffa
100644
(file)
--- a/
lld/ELF/InputSection.h
+++ b/
lld/ELF/InputSection.h
@@
-149,6
+149,8
@@
public:
bytesDropped -= num;
}
+ mutable ArrayRef<uint8_t> rawData;
+
void trim() {
if (bytesDropped) {
rawData = rawData.drop_back(bytesDropped);
@@
-220,8
+222,6
@@
public:
return llvm::makeArrayRef<T>((const T *)rawData.data(), s / sizeof(T));
}
- mutable ArrayRef<uint8_t> rawData;
-
protected:
template <typename ELFT>
void parseCompressedHeader();