aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-14 18:18:16 +0000
committerChris Lattner <sabre@nondot.org>2009-07-14 18:18:16 +0000
commit991b515cf1b2dc38eeca67192e3829f955f000c0 (patch)
tree752f87f0c2cd860ac7a142b4f695d3e5af516603 /lib/CodeGen/CGDebugInfo.cpp
parent3d598a5ab3c8aabce0a03a2f5dea65eee643e5ac (diff)
[llvm up] adjust to match mainline.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75647 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--lib/CodeGen/CGDebugInfo.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp
index b4eff37093..3d7548e293 100644
--- a/lib/CodeGen/CGDebugInfo.cpp
+++ b/lib/CodeGen/CGDebugInfo.cpp
@@ -843,7 +843,8 @@ void CGDebugInfo::EmitFunctionStart(const char *Name, QualType ReturnType,
unsigned LineNo = SM.getPresumedLoc(CurLoc).getLine();
llvm::DISubprogram SP =
- DebugFactory.CreateSubprogram(Unit, Name, Name, LLVMMangler->getValueName(Fn),
+ DebugFactory.CreateSubprogram(Unit, Name, Name,
+ LLVMMangler->getMangledName(Fn),
Unit, LineNo,
getOrCreateType(ReturnType, Unit),
Fn->hasInternalLinkage(), true/*definition*/);
@@ -980,7 +981,7 @@ void CGDebugInfo::EmitGlobalVariable(llvm::GlobalVariable *Var,
}
DebugFactory.CreateGlobalVariable(Unit, Name, Name,
- LLVMMangler->getValueName(Var),
+ LLVMMangler->getMangledName(Var),
Unit, LineNo,
getOrCreateType(T, Unit),
Var->hasInternalLinkage(),
@@ -1012,7 +1013,7 @@ void CGDebugInfo::EmitGlobalVariable(llvm::GlobalVariable *Var,
}
DebugFactory.CreateGlobalVariable(Unit, Name, Name,
- LLVMMangler->getValueName(Var),
+ LLVMMangler->getMangledName(Var),
Unit, LineNo,
getOrCreateType(T, Unit),
Var->hasInternalLinkage(),