From: Devang Patel Date: Tue, 20 Jan 2009 18:55:39 +0000 (+0000) Subject: Fix global variable's address in a DIE. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9ec50ab3f88f512739b383a13c739f77567c9dbe;p=oota-llvm.git 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 --- diff --git a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp index fa05c682504..88d8be10985 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.