From cbc6fd8493e9b45c6995cfdedc5caa34b3b3ee1e 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. llvm-svn: 106516 --- llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 41e4bfbaff39..d47359c02b15 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/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))