diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-02-18 23:53:56 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-02-18 23:53:56 +0000 |
commit | 5f361c9f1e1bb10592cefe02595710d6527362af (patch) | |
tree | 382c1d4cddc34043f4f2032c0a5534a1123ec11c /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 84e7c1e2ffbd19c4bb934da483046e8d73e4d931 (diff) | |
download | bcm5719-llvm-5f361c9f1e1bb10592cefe02595710d6527362af.tar.gz bcm5719-llvm-5f361c9f1e1bb10592cefe02595710d6527362af.zip |
Address Chris's comments regarding C++ name mangling.
llvm-svn: 64984
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index a699317f63d..c1436b5ff4b 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -171,8 +171,7 @@ void CodeGenFunction::StartFunction(const Decl *D, QualType RetTy, if (CGDebugInfo *DI = getDebugInfo()) { DI->setLocation(StartLoc); if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) { - DI->EmitFunctionStart(CGM.getMangledName(FD)->getName(), - RetTy, CurFn, Builder); + DI->EmitFunctionStart(CGM.getMangledName(FD), RetTy, CurFn, Builder); } else { // Just use LLVM function name. DI->EmitFunctionStart(Fn->getName().c_str(), |