Fix global variable's address in a DIE.

llvm-svn: 62596
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
index fa05c68..88d8be1 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
@@ -2791,7 +2791,7 @@
       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.