summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCMachOStreamer.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-02-02 21:44:01 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-02-02 21:44:01 +0000
commit255a8c8b13b1ed83f1a45e1ca37927dfc1752390 (patch)
tree050b25d735fe1fb1942f92707732cf94fbc6d291 /llvm/lib/MC/MCMachOStreamer.cpp
parentc83cfb9dfa2f1ebab5bdc5c26642ada78b8b0ea7 (diff)
downloadbcm5719-llvm-255a8c8b13b1ed83f1a45e1ca37927dfc1752390.tar.gz
bcm5719-llvm-255a8c8b13b1ed83f1a45e1ca37927dfc1752390.zip
MC/Mach-O: Set SOME_INSTRUCTIONS bit for sections.
llvm-svn: 95135
Diffstat (limited to 'llvm/lib/MC/MCMachOStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCMachOStreamer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCMachOStreamer.cpp b/llvm/lib/MC/MCMachOStreamer.cpp
index 143793cde10..981eb72d14c 100644
--- a/llvm/lib/MC/MCMachOStreamer.cpp
+++ b/llvm/lib/MC/MCMachOStreamer.cpp
@@ -362,8 +362,8 @@ void MCMachOStreamer::EmitInstruction(const MCInst &Inst) {
if (!Emitter)
llvm_unreachable("no code emitter available!");
- // FIXME: Emitting an instruction should cause S_ATTR_SOME_INSTRUCTIONS to
- // be set for the current section.
+ CurSectionData->setHasInstructions(true);
+
// FIXME: Relocations!
SmallString<256> Code;
raw_svector_ostream VecOS(Code);
OpenPOWER on IntegriCloud