summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/XCOFFObjectWriter.cpp
diff options
context:
space:
mode:
authorJason Liu <jasonliu.development@gmail.com>2019-10-16 17:36:31 +0000
committerJason Liu <jasonliu.development@gmail.com>2019-10-16 17:36:31 +0000
commit97ed5625442d66d882c304a72ffe0de9fdad59a1 (patch)
tree6993d3aa4dfc84a394b3c62fb771d3b0b4d59b0f /llvm/lib/MC/XCOFFObjectWriter.cpp
parent2622419c78c204105bd04d5f0b55eadbc26850ad (diff)
downloadbcm5719-llvm-97ed5625442d66d882c304a72ffe0de9fdad59a1.tar.gz
bcm5719-llvm-97ed5625442d66d882c304a72ffe0de9fdad59a1.zip
[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 llvm-svn: 375021
Diffstat (limited to 'llvm/lib/MC/XCOFFObjectWriter.cpp')
-rw-r--r--llvm/lib/MC/XCOFFObjectWriter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/MC/XCOFFObjectWriter.cpp b/llvm/lib/MC/XCOFFObjectWriter.cpp
index e383e7e3721..353c2106873 100644
--- a/llvm/lib/MC/XCOFFObjectWriter.cpp
+++ b/llvm/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<ControlSection>;
+ using CsectGroup = std::deque<ControlSection>;
support::endian::Writer W;
std::unique_ptr<MCXCOFFObjectTargetWriter> 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;
OpenPOWER on IntegriCloud