MC/Mach-O: Set SOME_INSTRUCTIONS bit for sections.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95135 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar
2010-02-02 21:44:01 +00:00
parent e0faa54705
commit e1ec617c6a
4 changed files with 31 additions and 5 deletions

View 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; }
/// @}
};