summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-06-01 01:05:07 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-06-01 01:05:07 +0000
commita66395e18401dd6bc2c840c9f7587d1ec5a05efc (patch)
treeadca2ecfe92279f8323fe426b27510b1da2a57ba /llvm
parent09d3ecc60df6f9d6cc79171eb9f5e87bdcb33d57 (diff)
downloadbcm5719-llvm-a66395e18401dd6bc2c840c9f7587d1ec5a05efc.tar.gz
bcm5719-llvm-a66395e18401dd6bc2c840c9f7587d1ec5a05efc.zip
Use a bitfield. NFC.
llvm-svn: 238705
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/MC/MCSection.h2
-rw-r--r--llvm/lib/MC/MCSection.cpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/llvm/include/llvm/MC/MCSection.h b/llvm/include/llvm/MC/MCSection.h
index 96a4ef135f2..ceb86cdc9aa 100644
--- a/llvm/include/llvm/MC/MCSection.h
+++ b/llvm/include/llvm/MC/MCSection.h
@@ -73,7 +73,7 @@ private:
/// \brief We've seen a bundle_lock directive but not its first instruction
/// yet.
- bool BundleGroupBeforeFirstInst = false;
+ unsigned BundleGroupBeforeFirstInst : 1;
/// Whether this section has had instructions emitted into it.
unsigned HasInstructions : 1;
diff --git a/llvm/lib/MC/MCSection.cpp b/llvm/lib/MC/MCSection.cpp
index 04f932bfeec..d39cb5db731 100644
--- a/llvm/lib/MC/MCSection.cpp
+++ b/llvm/lib/MC/MCSection.cpp
@@ -20,7 +20,8 @@ using namespace llvm;
//===----------------------------------------------------------------------===//
MCSection::MCSection(SectionVariant V, SectionKind K, MCSymbol *Begin)
- : Begin(Begin), HasInstructions(false), Variant(V), Kind(K) {}
+ : Begin(Begin), BundleGroupBeforeFirstInst(false), HasInstructions(false),
+ Variant(V), Kind(K) {}
MCSymbol *MCSection::getEndSymbol(MCContext &Ctx) {
if (!End)
OpenPOWER on IntegriCloud