aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
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(),