From 7e1d742e1a868871d7c35d3880d8aa5d6d5d21e2 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Tue, 22 Jun 2010 01:06:05 +0000 Subject: [PATCH] Discard special LLVM prefix from linkage name. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106516 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 41e4bfbaff3..d47359c02b1 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -2260,7 +2260,8 @@ void DwarfDebug::collectVariableInfo(const MachineFunction *MF) { const Function *F = MF->getFunction(); const Module *M = F->getParent(); if (NamedMDNode *NMD = - M->getNamedMetadataUsingTwine(Twine("llvm.dbg.lv.", F->getName()))) { + M->getNamedMetadataUsingTwine(Twine("llvm.dbg.lv.", + getRealLinkageName(F->getName())))) { for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) { DIVariable DV(cast_or_null(NMD->getOperand(i))); if (!DV || !Processed.insert(DV))