diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-09-16 00:08:41 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-09-16 00:08:41 +0000 |
| commit | dd5a9890344d52e0b93af4bbc4c0002d9dfc70d4 (patch) | |
| tree | b0ed6e6afb4806078ea0fae4b44490e12ad8e230 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
| parent | 3045f9e57b917ea955e45c40855abf590c47bba5 (diff) | |
| download | bcm5719-llvm-dd5a9890344d52e0b93af4bbc4c0002d9dfc70d4.tar.gz bcm5719-llvm-dd5a9890344d52e0b93af4bbc4c0002d9dfc70d4.zip | |
eliminate the horrid AsmPrinter::getGlobalLinkName method, inlining
it into all of its call sites and simplifying them.
llvm-svn: 81962
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 577f111ff60..750f3cb4a6a 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -23,6 +23,7 @@ #include "llvm/Target/TargetLoweringObjectFile.h" #include "llvm/Target/TargetRegisterInfo.h" #include "llvm/ADT/StringExtras.h" +#include "llvm/Support/Mangler.h" #include "llvm/Support/Timer.h" #include "llvm/Support/Debug.h" #include "llvm/System/Path.h" @@ -1501,9 +1502,8 @@ void DwarfDebug::ConstructGlobalVariableDIE(MDNode *N) { // Add address. DIEBlock *Block = new DIEBlock(); AddUInt(Block, 0, dwarf::DW_FORM_data1, dwarf::DW_OP_addr); - std::string GLN; AddObjectLabel(Block, 0, dwarf::DW_FORM_udata, - Asm->getGlobalLinkName(DI_GV.getGlobal(), GLN)); + Asm->Mang->getMangledName(DI_GV.getGlobal())); AddBlock(VariableDie, dwarf::DW_AT_location, 0, Block); // Add to map. |

