aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-14 16:40:28 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-14 16:40:28 +0000
commita1a5e8a1604c89d0c9f7ae9d06b8a9ae81e6bb10 (patch)
tree05165ecac3e898dbf37ce3d0e7091b873cc4b635 /lib/CodeGen/CGDebugInfo.cpp
parentea218b8e8f9ba82d1c76bcb7e86d121a5f65ebed (diff)
Revert r75614 which depend on r75610 (for LLVM), which was reverted.
--- Reverse-merging r75614 into '.': U lib/CodeGen/CGDebugInfo.cpp git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75639 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--lib/CodeGen/CGDebugInfo.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp
index 47b477e9d5..7855b91f1f 100644
--- a/lib/CodeGen/CGDebugInfo.cpp
+++ b/lib/CodeGen/CGDebugInfo.cpp
@@ -843,8 +843,7 @@ void CGDebugInfo::EmitFunctionStart(const char *Name, QualType ReturnType,
unsigned LineNo = SM.getPresumedLoc(CurLoc).getLine();
llvm::DISubprogram SP =
- DebugFactory.CreateSubprogram(Unit, Name, Name,
- LLVMMangler->getMangledName(Fn),
+ DebugFactory.CreateSubprogram(Unit, Name, Name, LLVMMangler->getValueName(Fn),
Unit, LineNo,
getOrCreateType(ReturnType, Unit),
Fn->hasInternalLinkage(), true/*definition*/);
@@ -981,7 +980,7 @@ void CGDebugInfo::EmitGlobalVariable(llvm::GlobalVariable *Var,
}
DebugFactory.CreateGlobalVariable(Unit, Name, Name,
- LLVMMangler->getMangledName(Var),
+ LLVMMangler->getValueName(Var),
Unit, LineNo,
getOrCreateType(T, Unit),
Var->hasInternalLinkage(),
@@ -1013,7 +1012,7 @@ void CGDebugInfo::EmitGlobalVariable(llvm::GlobalVariable *Var,
}
DebugFactory.CreateGlobalVariable(Unit, Name, Name,
- LLVMMangler->getMangledName(Var),
+ LLVMMangler->getValueName(Var),
Unit, LineNo,
getOrCreateType(T, Unit),
Var->hasInternalLinkage(),