[ELF] Move InputSectionBase::rawData member [NFC]

This commit is contained in:
Greg McGary 2022-05-09 20:41:08 -07:00
parent c4172c751a
commit ebc2529206

View File

@ -149,6 +149,8 @@ public:
bytesDropped -= num; bytesDropped -= num;
} }
mutable ArrayRef<uint8_t> rawData;
void trim() { void trim() {
if (bytesDropped) { if (bytesDropped) {
rawData = rawData.drop_back(bytesDropped); rawData = rawData.drop_back(bytesDropped);
@ -220,8 +222,6 @@ public:
return llvm::makeArrayRef<T>((const T *)rawData.data(), s / sizeof(T)); return llvm::makeArrayRef<T>((const T *)rawData.data(), s / sizeof(T));
} }
mutable ArrayRef<uint8_t> rawData;
protected: protected:
template <typename ELFT> template <typename ELFT>
void parseCompressedHeader(); void parseCompressedHeader();