mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Print blank line and clear stubs vector.
llvm-svn: 98019
This commit is contained in:
parent
a9e3eb7d2d
commit
a2ed617fa9
@ -1132,8 +1132,16 @@ void ARMAsmPrinter::EmitEndOfAsmFile(Module &M) {
|
||||
// L_foo$stub:
|
||||
OutStreamer.EmitLabel(Stubs[i].first);
|
||||
// .indirect_symbol _foo
|
||||
OutStreamer.EmitSymbolAttribute(Stubs[i].second, MCSA_IndirectSymbol);
|
||||
OutStreamer.EmitIntValue(0, 4/*size*/, 0/*addrspace*/);
|
||||
MCSymbol *MCSym = Stubs[i].second;
|
||||
OutStreamer.EmitSymbolAttribute(MCSym, MCSA_IndirectSymbol);
|
||||
|
||||
if (MCSym->isUndefined())
|
||||
// External to current translation unit.
|
||||
OutStreamer.EmitIntValue(0, 4/*size*/, 0/*addrspace*/);
|
||||
else
|
||||
// Internal to current translation unit.
|
||||
OutStreamer.EmitValue(MCSymbolRefExpr::Create(MCSym, OutContext),
|
||||
4/*size*/, 0/*addrspace*/);
|
||||
}
|
||||
|
||||
Stubs.clear();
|
||||
@ -1152,6 +1160,9 @@ void ARMAsmPrinter::EmitEndOfAsmFile(Module &M) {
|
||||
OutContext),
|
||||
4/*size*/, 0/*addrspace*/);
|
||||
}
|
||||
|
||||
Stubs.clear();
|
||||
OutStreamer.AddBlankLine();
|
||||
}
|
||||
|
||||
// Funny Darwin hack: This flag tells the linker that no global symbols
|
||||
|
Loading…
Reference in New Issue
Block a user