Use a bitfield. NFC.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 1 Jun 2015 01:05:07 +0000 (01:05 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 1 Jun 2015 01:05:07 +0000 (01:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238705 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCSection.h
lib/MC/MCSection.cpp

index 96a4ef135f217385ec12b5949eff22c00b6e0d57..ceb86cdc9aaffe22047f3857ef39a3d7323560e2 100644 (file)
@@ -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;
index 04f932bfeec07903c7786f185a4c7edb50f07c2b..d39cb5db7318a20135949863bc4f59856ab16b31 100644 (file)
@@ -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)