aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/DwarfWriter.cpp
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-10-16 19:38:41 +0000
committerJim Laskey <jlaskey@mac.com>2006-10-16 19:38:41 +0000
commitba8a2ee548ba8d589fd22cf61d479bc5f1274c69 (patch)
tree3ab11adec92f4b18c5fbba3cc996362d3c9efa12 /lib/CodeGen/DwarfWriter.cpp
parent27e469ef139e0b0b447360b0c37aeb0496b6d7d8 (diff)
Global name regression.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30982 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/DwarfWriter.cpp')
-rw-r--r--lib/CodeGen/DwarfWriter.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/CodeGen/DwarfWriter.cpp b/lib/CodeGen/DwarfWriter.cpp
index 9065607ca5..8fe8b4e762 100644
--- a/lib/CodeGen/DwarfWriter.cpp
+++ b/lib/CodeGen/DwarfWriter.cpp
@@ -1632,11 +1632,15 @@ DIE *DwarfWriter::NewGlobalVariable(GlobalVariableDesc *GVD) {
// 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);