diff options
author | Jason W Kim <jason.w.kim.2009@gmail.com> | 2010-09-30 02:45:56 +0000 |
---|---|---|
committer | Jason W Kim <jason.w.kim.2009@gmail.com> | 2010-09-30 02:45:56 +0000 |
commit | afd1cc25786f68ca56a63d29ea2bd297990e9f81 (patch) | |
tree | 2b1302e57d7293dd378a26337a3c6184adc21040 /lib/MC | |
parent | 12ad94e03c46c3bba44756bc052e08d6c4341b3d (diff) | |
download | external_llvm-afd1cc25786f68ca56a63d29ea2bd297990e9f81.zip external_llvm-afd1cc25786f68ca56a63d29ea2bd297990e9f81.tar.gz external_llvm-afd1cc25786f68ca56a63d29ea2bd297990e9f81.tar.bz2 |
Tiny patch for proof-of-concept cleanup of ARMAsmPrinter::EmitStartOfAsmFile()
Small test for sanity check of resulting ARM .s file.
Tested against -r115129.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115133 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
-rw-r--r-- | lib/MC/MCAsmStreamer.cpp | 1 | ||||
-rw-r--r-- | lib/MC/MCELFStreamer.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/MC/MCAsmStreamer.cpp b/lib/MC/MCAsmStreamer.cpp index 1402f8e..6c240cf 100644 --- a/lib/MC/MCAsmStreamer.cpp +++ b/lib/MC/MCAsmStreamer.cpp @@ -244,6 +244,7 @@ void MCAsmStreamer::EmitLabel(MCSymbol *Symbol) { void MCAsmStreamer::EmitAssemblerFlag(MCAssemblerFlag Flag) { switch (Flag) { default: assert(0 && "Invalid flag!"); + case MCAF_SyntaxUnified: OS << "\t.syntax unified"; break; case MCAF_SubsectionsViaSymbols: OS << ".subsections_via_symbols"; break; } EmitEOL(); diff --git a/lib/MC/MCELFStreamer.cpp b/lib/MC/MCELFStreamer.cpp index 465f9ce..ecc72c2 100644 --- a/lib/MC/MCELFStreamer.cpp +++ b/lib/MC/MCELFStreamer.cpp @@ -197,6 +197,7 @@ void MCELFStreamer::EmitLabel(MCSymbol *Symbol) { void MCELFStreamer::EmitAssemblerFlag(MCAssemblerFlag Flag) { switch (Flag) { + case MCAF_SyntaxUnified: return; // no-op here? case MCAF_SubsectionsViaSymbols: getAssembler().setSubsectionsViaSymbols(true); return; |