[lld] 94e97e6 - [ELF] Reorder InputSectionBase::parent. NFC

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 29 16:20:45 PST 2022


Author: Fangrui Song
Date: 2022-01-29T16:20:40-08:00
New Revision: 94e97e668c95385b4bddc52403f7486be65fe03f

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

LOG: [ELF] Reorder InputSectionBase::parent. NFC

Move it before others.

Added: 
    

Modified: 
    lld/ELF/InputSection.h

Removed: 
    


################################################################################
diff  --git a/lld/ELF/InputSection.h b/lld/ELF/InputSection.h
index d7dea9d2587a..0b8012514139 100644
--- a/lld/ELF/InputSection.h
+++ b/lld/ELF/InputSection.h
@@ -119,6 +119,12 @@ class InputSectionBase : public SectionBase {
   // its static type.
   InputFile *file;
 
+  // Input sections are part of an output section. Special sections
+  // like .eh_frame and merge sections are first combined into a
+  // synthetic section that is then added to an output section. In all
+  // cases this points one level up.
+  SectionBase *parent = nullptr;
+
   // Section index of the relocation section if exists.
   uint32_t relSecIdx = 0;
 
@@ -159,12 +165,6 @@ class InputSectionBase : public SectionBase {
     return rawData;
   }
 
-  // Input sections are part of an output section. Special sections
-  // like .eh_frame and merge sections are first combined into a
-  // synthetic section that is then added to an output section. In all
-  // cases this points one level up.
-  SectionBase *parent = nullptr;
-
   // The next member in the section group if this section is in a group. This is
   // used by --gc-sections.
   InputSectionBase *nextInSectionGroup = nullptr;


        


More information about the llvm-commits mailing list