Fix global variable's address in a DIE.
authorDevang Patel <dpatel@apple.com>
Tue, 20 Jan 2009 18:55:39 +0000 (18:55 +0000)
committerDevang Patel <dpatel@apple.com>
Tue, 20 Jan 2009 18:55:39 +0000 (18:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62596 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfWriter.cpp

index fa05c68250421a3b9bcfafed43f47e6330e1b9df..88d8be1098583a91f52055c06fe0a58d7d147af6 100644 (file)
@@ -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.