aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-06-22 01:06:05 +0000
committerDevang Patel <dpatel@apple.com>2010-06-22 01:06:05 +0000
commit7e1d742e1a868871d7c35d3880d8aa5d6d5d21e2 (patch)
tree523fad8f3004b15097063d30edf81dc78963fa3f /lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parentd1bbc6b70e2288033fcb8c5b8273e8afb0fe9718 (diff)
Discard special LLVM prefix from linkage name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106516 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 41e4bfbaff..d47359c02b 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<MDNode>(NMD->getOperand(i)));
if (!DV || !Processed.insert(DV))