From: Jason Liu Date: Wed, 16 Oct 2019 17:36:31 +0000 (+0000) Subject: [NFC][XCOFF][AIX] Rename ControlSections to CsectGroup X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=17f36dead997b28a3a9c13a7c6f13e030642d5be;p=llvm [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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@375021 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/MC/XCOFFObjectWriter.cpp b/lib/MC/XCOFFObjectWriter.cpp index e383e7e3721..353c2106873 100644 --- a/lib/MC/XCOFFObjectWriter.cpp +++ b/lib/MC/XCOFFObjectWriter.cpp @@ -115,7 +115,7 @@ class XCOFFObjectWriter : public MCObjectWriter { // (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; + using CsectGroup = std::deque; support::endian::Writer W; std::unique_ptr TargetObjectWriter; @@ -129,11 +129,11 @@ class XCOFFObjectWriter : public MCObjectWriter { 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;