[llvm] r375021 - [NFC][XCOFF][AIX] Rename ControlSections to CsectGroup

Jason Liu via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 16 10:36:31 PDT 2019


Author: jasonliu
Date: Wed Oct 16 10:36:31 2019
New Revision: 375021

URL: http://llvm.org/viewvc/llvm-project?rev=375021&view=rev
Log:
[NFC][XCOFF][AIX] Rename ControlSections to CsectGroup

The name of ControlSections is not expressive enough to convey what they really are.
CsectGroup can better communicate the concept of grouping csects together since they have similar property.

Reviewer: daltenty

Differential Revision: https://reviews.llvm.org/D69001

Modified:
    llvm/trunk/lib/MC/XCOFFObjectWriter.cpp

Modified: llvm/trunk/lib/MC/XCOFFObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/XCOFFObjectWriter.cpp?rev=375021&r1=375020&r2=375021&view=diff
==============================================================================
--- llvm/trunk/lib/MC/XCOFFObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/XCOFFObjectWriter.cpp Wed Oct 16 10:36:31 2019
@@ -115,7 +115,7 @@ class XCOFFObjectWriter : public MCObjec
   // (approximately) the same storage mapping class. For example all the csects
   // with a storage mapping class of `xmc_pr` will get placed into the same
   // container.
-  using ControlSections = std::deque<ControlSection>;
+  using CsectGroup = std::deque<ControlSection>;
 
   support::endian::Writer W;
   std::unique_ptr<MCXCOFFObjectTargetWriter> TargetObjectWriter;
@@ -129,11 +129,11 @@ class XCOFFObjectWriter : public MCObjec
   Section Text;
   Section BSS;
 
-  // ControlSections. These store the csects which make up different parts of
+  // CsectGroups. These store the csects which make up different parts of
   // the sections. Should have one for each set of csects that get mapped into
   // the same section and get handled in a 'similar' way.
-  ControlSections ProgramCodeCsects;
-  ControlSections BSSCsects;
+  CsectGroup ProgramCodeCsects;
+  CsectGroup BSSCsects;
 
   uint32_t SymbolTableEntryCount = 0;
   uint32_t SymbolTableOffset = 0;




More information about the llvm-commits mailing list