summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-01-14 00:36:21 +0000
committerDevang Patel <dpatel@apple.com>2010-01-14 00:36:21 +0000
commit934661ed73ba3db40aa6d7941a525b3d75e1199e (patch)
tree6cc8bc91b219cc8ebda94b5ba8cf9734885da9e6 /clang/lib/CodeGen/CodeGenFunction.cpp
parente2dd5428e6ea76a83a009177a1be4334cedd70e6 (diff)
downloadbcm5719-llvm-934661ed73ba3db40aa6d7941a525b3d75e1199e.tar.gz
bcm5719-llvm-934661ed73ba3db40aa6d7941a525b3d75e1199e.zip
Emit human readable names for c/c++ functions. Avoid emitting linkage name if it matches regular name.
llvm-svn: 93383
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index 3592c5ca80e..f0a5c64d2fd 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/lib/CodeGen/CodeGenFunction.cpp
@@ -190,15 +190,9 @@ void CodeGenFunction::StartFunction(GlobalDecl GD, QualType RetTy,
QualType FnType = getContext().getFunctionType(RetTy, 0, 0, false, 0);
// Emit subprogram debug descriptor.
- // FIXME: The cast here is a huge hack.
if (CGDebugInfo *DI = getDebugInfo()) {
DI->setLocation(StartLoc);
- if (isa<FunctionDecl>(D)) {
- DI->EmitFunctionStart(CGM.getMangledName(GD), FnType, CurFn, Builder);
- } else {
- // Just use LLVM function name.
- DI->EmitFunctionStart(Fn->getName(), FnType, CurFn, Builder);
- }
+ DI->EmitFunctionStart(GD, FnType, CurFn, Builder);
}
// FIXME: Leaked.
OpenPOWER on IntegriCloud