Discard special LLVM prefix from linkage name.

llvm-svn: 106516
This commit is contained in:
Devang Patel 2010-06-22 01:06:05 +00:00
parent ad51735794
commit cbc6fd8493
1 changed files with 2 additions and 1 deletions

View 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))