1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

emit .subsections_via_symbols through MCStreamer instead of textually.

llvm-svn: 84509
This commit is contained in:
Chris Lattner 2009-10-19 18:03:08 +00:00
parent e53fff883a
commit bddb00eadd
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()) {