aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCAssembler.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-05-25 15:04:26 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-05-25 15:04:26 +0000
commitb028cc80989ccbdeb6940d89b1bac5a036377249 (patch)
tree0f01b264310859c39f604a891da7b6c991ba4ed6 /llvm/lib/MC/MCAssembler.cpp
parentc1cd944854e2d654d93851788691a27295b98e48 (diff)
downloadllvm-b028cc80989ccbdeb6940d89b1bac5a036377249.zip
llvm-b028cc80989ccbdeb6940d89b1bac5a036377249.tar.gz
llvm-b028cc80989ccbdeb6940d89b1bac5a036377249.tar.bz2
Move bundle info from MCSectionData to MCSection.
llvm-svn: 238143
Diffstat (limited to 'llvm/lib/MC/MCAssembler.cpp')
-rw-r--r--llvm/lib/MC/MCAssembler.cpp23
1 files changed, 1 insertions, 22 deletions
diff --git a/llvm/lib/MC/MCAssembler.cpp b/llvm/lib/MC/MCAssembler.cpp
index cb11555..a3c7c70 100644
--- a/llvm/lib/MC/MCAssembler.cpp
+++ b/llvm/lib/MC/MCAssembler.cpp
@@ -293,9 +293,7 @@ MCEncodedFragmentWithFixups::~MCEncodedFragmentWithFixups() {
MCSectionData::MCSectionData() : Section(nullptr) {}
MCSectionData::MCSectionData(MCSection &Section, MCAssembler *A)
- : Section(&Section), BundleLockState(NotBundleLocked),
- BundleLockNestingDepth(0), BundleGroupBeforeFirstInst(false),
- HasInstructions(false) {
+ : Section(&Section), HasInstructions(false) {
if (A)
A->getSectionList().push_back(this);
}
@@ -331,25 +329,6 @@ MCSectionData::getSubsectionInsertionPoint(unsigned Subsection) {
return IP;
}
-void MCSectionData::setBundleLockState(BundleLockStateType NewState) {
- if (NewState == NotBundleLocked) {
- if (BundleLockNestingDepth == 0) {
- report_fatal_error("Mismatched bundle_lock/unlock directives");
- }
- if (--BundleLockNestingDepth == 0) {
- BundleLockState = NotBundleLocked;
- }
- return;
- }
-
- // If any of the directives is an align_to_end directive, the whole nested
- // group is align_to_end. So don't downgrade from align_to_end to just locked.
- if (BundleLockState != BundleLockedAlignToEnd) {
- BundleLockState = NewState;
- }
- ++BundleLockNestingDepth;
-}
-
/* *** */
MCAssembler::MCAssembler(MCContext &Context_, MCAsmBackend &Backend_,