[llvm-commits] CVS: llvm/lib/VMCore/AsmWriter.cpp

Chris Lattner lattner at cs.uiuc.edu
Sat Dec 4 22:44:21 PST 2004



Changes in directory llvm/lib/VMCore:

AsmWriter.cpp updated: 1.165 -> 1.166
---
Log message:

When printing out a function, make sure that local and global symbols
don't conflict.  This fixes Assembler/2004-12-05-LocalGlobalSymtabConflict.ll


---
Diffs of the changes:  (+3 -0)

Index: llvm/lib/VMCore/AsmWriter.cpp
diff -u llvm/lib/VMCore/AsmWriter.cpp:1.165 llvm/lib/VMCore/AsmWriter.cpp:1.166
--- llvm/lib/VMCore/AsmWriter.cpp:1.165	Mon Nov 15 13:30:05 2004
+++ llvm/lib/VMCore/AsmWriter.cpp	Sun Dec  5 00:44:09 2004
@@ -879,6 +879,9 @@
   // 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())






More information about the llvm-commits mailing list