summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
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
commit9db3a088648633f9842906fd15127a33bf810adb (patch)
treee067f1b59260c974314ff99d2060ef518f027d25 /llvm/lib/CodeGen
parente341d60f53253bac8b7aadd406dd2a451db55119 (diff)
downloadbcm5719-llvm-9db3a088648633f9842906fd15127a33bf810adb.tar.gz
bcm5719-llvm-9db3a088648633f9842906fd15127a33bf810adb.zip
Global name regression.
llvm-svn: 30982
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/DwarfWriter.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/DwarfWriter.cpp b/llvm/lib/CodeGen/DwarfWriter.cpp
index 9065607ca5e..8fe8b4e7627 100644
--- a/llvm/lib/CodeGen/DwarfWriter.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud