emit .subsections_via_symbols through MCStreamer instead of textually.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84509 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2009-10-19 18:03:08 +00:00
parent 4a071d667d
commit 74cd3b7ceb
3 changed files with 5 additions and 3 deletions

View File

@ -1291,7 +1291,7 @@ void ARMAsmPrinter::EmitEndOfAsmFile(Module &M) {
// implementation of multiple entry points). If this doesn't occur, the
// linker can safely perform dead code stripping. Since LLVM never
// generates code that does this, it is always safe to set.
O << "\t.subsections_via_symbols\n";
OutStreamer.EmitAssemblerFlag(MCStreamer::SubsectionsViaSymbols);
}
}

View File

@ -1129,7 +1129,7 @@ bool PPCDarwinAsmPrinter::doFinalization(Module &M) {
// implementation of multiple entry points). If this doesn't occur, the
// linker can safely perform dead code stripping. Since LLVM never generates
// code that does this, it is always safe to set.
O << "\t.subsections_via_symbols\n";
OutStreamer.EmitAssemblerFlag(MCStreamer::SubsectionsViaSymbols);
return AsmPrinter::doFinalization(M);
}

View File

@ -870,7 +870,9 @@ void X86AsmPrinter::EmitEndOfAsmFile(Module &M) {
// implementation of multiple entry points). If this doesn't occur, the
// linker can safely perform dead code stripping. Since LLVM never
// generates code that does this, it is always safe to set.
O << "\t.subsections_via_symbols\n";
//O << "\t.subsections_via_symbols\n";
OutStreamer.EmitAssemblerFlag(MCStreamer::SubsectionsViaSymbols);
}
if (Subtarget->isTargetCOFF()) {