diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2010-02-02 21:44:01 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2010-02-02 21:44:01 +0000 |
| commit | 255a8c8b13b1ed83f1a45e1ca37927dfc1752390 (patch) | |
| tree | 050b25d735fe1fb1942f92707732cf94fbc6d291 /llvm/include | |
| parent | c83cfb9dfa2f1ebab5bdc5c26642ada78b8b0ea7 (diff) | |
| download | bcm5719-llvm-255a8c8b13b1ed83f1a45e1ca37927dfc1752390.tar.gz bcm5719-llvm-255a8c8b13b1ed83f1a45e1ca37927dfc1752390.zip | |
MC/Mach-O: Set SOME_INSTRUCTIONS bit for sections.
llvm-svn: 95135
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/MC/MCAssembler.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/llvm/include/llvm/MC/MCAssembler.h b/llvm/include/llvm/MC/MCAssembler.h index be017bf0e4c..55696b08fd6 100644 --- a/llvm/include/llvm/MC/MCAssembler.h +++ b/llvm/include/llvm/MC/MCAssembler.h @@ -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; } + /// @} }; |

