[ELF] Move InputSectionBase::rawData member [NFC]
authorGreg McGary <gkm@rivosinc.com>
Tue, 10 May 2022 03:41:08 +0000 (20:41 -0700)
committerGreg McGary <gkm@rivosinc.com>
Tue, 10 May 2022 04:20:14 +0000 (21:20 -0700)
lld/ELF/InputSection.h

index 912b969..e9b1ffa 100644 (file)
@@ -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();