MC/Mach-O: Set SOME_INSTRUCTIONS bit for sections.
[oota-llvm.git] / include / llvm / MC / MCAssembler.h
index be017bf0e4c172c76bb92240d8cc1f3bf8c09c77..55696b08fd627702538a1359f0dcaf5747c27486 100644 (file)
@@ -348,7 +348,11 @@ private:
 
   /// Fixups - The list of fixups in this section.
   std::vector<Fixup> Fixups;
-  
+
+  /// HasInstructions - Whether this section has had instructions emitted into
+  /// it.
+  unsigned HasInstructions : 1;
+
   /// @}
 
 public:    
@@ -429,6 +433,9 @@ public:
   }
   void setFileSize(uint64_t Value) { FileSize = Value; }  
 
+  bool hasInstructions() const { return HasInstructions; }
+  void setHasInstructions(bool Value) { HasInstructions = Value; }
+
   /// @}
 };