[lld] ebc2529 - [ELF] Move InputSectionBase::rawData member [NFC]

Greg McGary via llvm-commits llvm-commits at lists.llvm.org
Mon May 9 21:26:14 PDT 2022


Author: Greg McGary
Date: 2022-05-09T21:20:14-07:00
New Revision: ebc25292060dd641e7c10fd0e4768458b123a060

URL: https://github.com/llvm/llvm-project/commit/ebc25292060dd641e7c10fd0e4768458b123a060
DIFF: https://github.com/llvm/llvm-project/commit/ebc25292060dd641e7c10fd0e4768458b123a060.diff

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

Added: 
    

Modified: 
    lld/ELF/InputSection.h

Removed: 
    


################################################################################
diff  --git a/lld/ELF/InputSection.h b/lld/ELF/InputSection.h
index 912b969fe3c4..e9b1ffadf44f 100644
--- a/lld/ELF/InputSection.h
+++ b/lld/ELF/InputSection.h
@@ -149,6 +149,8 @@ class InputSectionBase : public SectionBase {
     bytesDropped -= num;
   }
 
+  mutable ArrayRef<uint8_t> rawData;
+
   void trim() {
     if (bytesDropped) {
       rawData = rawData.drop_back(bytesDropped);
@@ -220,8 +222,6 @@ class InputSectionBase : public SectionBase {
     return llvm::makeArrayRef<T>((const T *)rawData.data(), s / sizeof(T));
   }
 
-  mutable ArrayRef<uint8_t> rawData;
-
 protected:
   template <typename ELFT>
   void parseCompressedHeader();


        


More information about the llvm-commits mailing list