From 97ed5625442d66d882c304a72ffe0de9fdad59a1 Mon Sep 17 00:00:00 2001 From: Jason Liu Date: Wed, 16 Oct 2019 17:36:31 +0000 Subject: [PATCH] [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 --- llvm/lib/MC/XCOFFObjectWriter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/llvm/lib/MC/XCOFFObjectWriter.cpp b/llvm/lib/MC/XCOFFObjectWriter.cpp index e383e7e3721a..353c21068735 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; + 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;