Discard special LLVM prefix from linkage name.
authorDevang Patel <dpatel@apple.com>
Tue, 22 Jun 2010 01:06:05 +0000 (01:06 +0000)
committerDevang Patel <dpatel@apple.com>
Tue, 22 Jun 2010 01:06:05 +0000 (01:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106516 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfDebug.cpp

index 41e4bfbaff39eaa781ab019ab32c8491bf16df26..d47359c02b15695634e2a2f0cddff6a4b05389f0 100644 (file)
@@ -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<MDNode>(NMD->getOperand(i)));
       if (!DV || !Processed.insert(DV))