[llvm-commits] CVS: llvm/lib/CodeGen/DwarfWriter.cpp
Jim Laskey
jlaskey at apple.com
Mon Oct 16 12:38:55 PDT 2006
Changes in directory llvm/lib/CodeGen:
DwarfWriter.cpp updated: 1.79 -> 1.80
---
Log message:
Global name regression.
---
Diffs of the changes: (+5 -1)
DwarfWriter.cpp | 6 +++++-
1 files changed, 5 insertions(+), 1 deletion(-)
Index: llvm/lib/CodeGen/DwarfWriter.cpp
diff -u llvm/lib/CodeGen/DwarfWriter.cpp:1.79 llvm/lib/CodeGen/DwarfWriter.cpp:1.80
--- llvm/lib/CodeGen/DwarfWriter.cpp:1.79 Fri Oct 13 08:02:19 2006
+++ llvm/lib/CodeGen/DwarfWriter.cpp Mon Oct 16 14:38:41 2006
@@ -1632,11 +1632,15 @@
// Add source line info if available.
AddSourceLine(VariableDie, UnitDesc, GVD->getLine());
+
+ // Work up linkage name.
+ std::string LinkageName(TAI->getGlobalPrefix());
+ LinkageName += GV->getName();
// Add address.
DIEBlock *Block = new DIEBlock();
Block->AddUInt(DW_FORM_data1, DW_OP_addr);
- Block->AddObjectLabel(DW_FORM_udata, MangledName);
+ Block->AddObjectLabel(DW_FORM_udata, LinkageName);
Block->ComputeSize(*this);
VariableDie->AddBlock(DW_AT_location, 0, Block);
More information about the llvm-commits
mailing list