[llvm-commits] CVS: llvm/lib/Support/Mangler.cpp

Brian Gaeke gaeke at cs.uiuc.edu
Tue Jul 6 15:30:02 PDT 2004


Changes in directory llvm/lib/Support:

Mangler.cpp updated: 1.11 -> 1.12

---
Log message:

Work around apparent Apple compiler bug which was making all mangled
names start with l0_.


---
Diffs of the changes:  (+2 -2)

Index: llvm/lib/Support/Mangler.cpp
diff -u llvm/lib/Support/Mangler.cpp:1.11 llvm/lib/Support/Mangler.cpp:1.12
--- llvm/lib/Support/Mangler.cpp:1.11	Mon Apr  5 15:17:53 2004
+++ llvm/lib/Support/Mangler.cpp	Tue Jul  6 15:29:05 2004
@@ -71,8 +71,8 @@
     } else {
       // Non-global, or global with internal linkage / colliding name
       // -> mangle.
-      name = "l" + utostr(V->getType()->getUniqueID()) + "_" +
-        makeNameProper(V->getName());      
+      unsigned TypeUniqueID = V->getType()->getUniqueID();
+      name = "l" + utostr(TypeUniqueID) + "_" + makeNameProper(V->getName());
     }
   } else {
     name = "ltmp_" + utostr(Count++) + "_"





More information about the llvm-commits mailing list