mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-11 15:26:07 +00:00
When printing out a function, make sure that local and global symbols
don't conflict. This fixes Assembler/2004-12-05-LocalGlobalSymtabConflict.ll llvm-svn: 18532
This commit is contained in:
parent
cdcd7126f1
commit
9c390fa13f
@ -879,6 +879,9 @@ void AssemblyWriter::printFunction(const Function *F) {
|
||||
// Print out the return type and name...
|
||||
Out << "\n";
|
||||
|
||||
// Ensure that no local symbols conflict with global symbols.
|
||||
const_cast<Function*>(F)->renameLocalSymbols();
|
||||
|
||||
if (AnnotationWriter) AnnotationWriter->emitFunctionAnnot(F, Out);
|
||||
|
||||
if (F->isExternal())
|
||||
|
Loading…
x
Reference in New Issue
Block a user