aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-01-20 18:55:39 +0000
committerDevang Patel <dpatel@apple.com>2009-01-20 18:55:39 +0000
commit9ec50ab3f88f512739b383a13c739f77567c9dbe (patch)
treee776fb4552300e3eb0c2bbbcef9f414f2922f56a /lib
parenteab4a2e8ac909b0ca420380634403616566d63fa (diff)
downloadexternal_llvm-9ec50ab3f88f512739b383a13c739f77567c9dbe.zip
external_llvm-9ec50ab3f88f512739b383a13c739f77567c9dbe.tar.gz
external_llvm-9ec50ab3f88f512739b383a13c739f77567c9dbe.tar.bz2
Fix global variable's address in a DIE.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62596 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
index fa05c68..88d8be1 100644
--- a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
@@ -2791,7 +2791,7 @@ private:
DIEBlock *Block = new DIEBlock();
AddUInt(Block, 0, DW_FORM_data1, DW_OP_addr);
AddObjectLabel(Block, 0, DW_FORM_udata,
- Asm->getGlobalLinkName(DI_GV.getGV()));
+ Asm->getGlobalLinkName(DI_GV.getGlobal()));
AddBlock(VariableDie, DW_AT_location, 0, Block);
//Add to map.