summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCMachOStreamer.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-12-08 01:16:55 +0000
committerJim Grosbach <grosbach@apple.com>2010-12-08 01:16:55 +0000
commit87055ed6f4beaa68fb32b3d625bcfc77f58b2a40 (patch)
tree3003f0cda8f37b6ce02a92bfea096215679b94be /llvm/lib/MC/MCMachOStreamer.cpp
parent0ecec99eb2eb2bd1707498d19deab2fef7b17ef5 (diff)
downloadbcm5719-llvm-87055ed6f4beaa68fb32b3d625bcfc77f58b2a40.tar.gz
bcm5719-llvm-87055ed6f4beaa68fb32b3d625bcfc77f58b2a40.zip
Let target asm backends see assembler flags as they go by. Use that to handle
thumb vs. arm mode differences in WriteNopData(). llvm-svn: 121219
Diffstat (limited to 'llvm/lib/MC/MCMachOStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCMachOStreamer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCMachOStreamer.cpp b/llvm/lib/MC/MCMachOStreamer.cpp
index 6f360010378..47060234b38 100644
--- a/llvm/lib/MC/MCMachOStreamer.cpp
+++ b/llvm/lib/MC/MCMachOStreamer.cpp
@@ -124,6 +124,9 @@ void MCMachOStreamer::EmitLabel(MCSymbol *Symbol) {
}
void MCMachOStreamer::EmitAssemblerFlag(MCAssemblerFlag Flag) {
+ // Let the target do whatever target specific stuff it needs to do.
+ getAssembler().getBackend().HandleAssemblerFlag(Flag);
+ // Do any generic stuff we need to do.
switch (Flag) {
case MCAF_SyntaxUnified: return; // no-op here.
case MCAF_Code16: return; // no-op here.
OpenPOWER on IntegriCloud