[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPC64AsmPrinter.cpp
Misha Brukman
brukman at cs.uiuc.edu
Thu Aug 19 09:34:06 PDT 2004
Changes in directory llvm/lib/Target/PowerPC:
PPC64AsmPrinter.cpp updated: 1.7 -> 1.8
---
Log message:
Correct character prepended to global symbols ('.'), use Mangler consistently
---
Diffs of the changes: (+2 -2)
Index: llvm/lib/Target/PowerPC/PPC64AsmPrinter.cpp
diff -u llvm/lib/Target/PowerPC/PPC64AsmPrinter.cpp:1.7 llvm/lib/Target/PowerPC/PPC64AsmPrinter.cpp:1.8
--- llvm/lib/Target/PowerPC/PPC64AsmPrinter.cpp:1.7 Tue Aug 17 01:07:43 2004
+++ llvm/lib/Target/PowerPC/PPC64AsmPrinter.cpp Thu Aug 19 11:33:56 2004
@@ -491,7 +491,7 @@
GlobalValue *GV = MO.getGlobal();
if (Function *F = dyn_cast<Function>(GV)) {
- O << "." << F->getName();
+ O << Mang->getValueName(F);
} else if (GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV)) {
// output the label name
O << GVToLabelMap[GVar];
@@ -666,7 +666,7 @@
O << '\n';
}
- Mang = new Mangler(M, "_");
+ Mang = new Mangler(M, ".");
return false; // success
}
More information about the llvm-commits
mailing list