diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-05-25 14:00:56 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-05-25 14:00:56 +0000 |
commit | 1f02022027314da943bbbb289e80fe11bbee5dec (patch) | |
tree | 00705f39a440c8cc9d015f464227956f28867926 /llvm/lib/MC | |
parent | e7134b2d78c9bd6922150e7d2a7f8dab4ca3023f (diff) | |
download | bcm5719-llvm-1f02022027314da943bbbb289e80fe11bbee5dec.tar.gz bcm5719-llvm-1f02022027314da943bbbb289e80fe11bbee5dec.zip |
Move Ordinal from MCSectionData to MCSection. NFC.
Part of the work to merge MCSectionData and MCSection.
llvm-svn: 238137
Diffstat (limited to 'llvm/lib/MC')
-rw-r--r-- | llvm/lib/MC/MCAssembler.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/llvm/lib/MC/MCAssembler.cpp b/llvm/lib/MC/MCAssembler.cpp index 2c041e26ac9..879f894ab1d 100644 --- a/llvm/lib/MC/MCAssembler.cpp +++ b/llvm/lib/MC/MCAssembler.cpp @@ -293,13 +293,16 @@ MCEncodedFragmentWithFixups::~MCEncodedFragmentWithFixups() { MCSectionData::MCSectionData() : Section(nullptr) {} MCSectionData::MCSectionData(MCSection &Section, MCAssembler *A) - : Section(&Section), Ordinal(~UINT32_C(0)), - BundleLockState(NotBundleLocked), BundleLockNestingDepth(0), - BundleGroupBeforeFirstInst(false), HasInstructions(false) { + : Section(&Section), BundleLockState(NotBundleLocked), + BundleLockNestingDepth(0), BundleGroupBeforeFirstInst(false), + HasInstructions(false) { if (A) A->getSectionList().push_back(this); } +unsigned MCSectionData::getOrdinal() const { return Section->getOrdinal(); } +void MCSectionData::setOrdinal(unsigned Value) { Section->setOrdinal(Value); } + MCSectionData::iterator MCSectionData::getSubsectionInsertionPoint(unsigned Subsection) { if (Subsection == 0 && SubsectionFragmentMap.empty()) |