diff options
author | Devang Patel <dpatel@apple.com> | 2010-01-14 00:36:21 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-01-14 00:36:21 +0000 |
commit | 934661ed73ba3db40aa6d7941a525b3d75e1199e (patch) | |
tree | 6cc8bc91b219cc8ebda94b5ba8cf9734885da9e6 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | e2dd5428e6ea76a83a009177a1be4334cedd70e6 (diff) | |
download | bcm5719-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.cpp | 8 |
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. |