summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-01-19 02:02:11 +0000
committerDevang Patel <dpatel@apple.com>2010-01-19 02:02:11 +0000
commit5e1a83c19672d57ad20a10bc415eb43572a21554 (patch)
tree559d9bdfea217e4b8d68de5ea8ed3af05dd299ab /clang/lib/CodeGen
parent7a12ad0dc1b75065f2e906b03937c477b4dfc86a (diff)
downloadbcm5719-llvm-5e1a83c19672d57ad20a10bc415eb43572a21554.tar.gz
bcm5719-llvm-5e1a83c19672d57ad20a10bc415eb43572a21554.zip
Emit human readable names for operators.
llvm-svn: 93837
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 6b2c3c6b6dd..d9c1e00012d 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -545,11 +545,10 @@ CollectCXXMemberFunctions(const CXXRecordDecl *Decl,
MethodName = getFunctionName(Method);
// FIXME : Find linkage name.
} else {
- // regular method
- IdentifierInfo *II = Method->getIdentifier();
- if (!II)
+ if (Method->isImplicit())
continue;
- MethodName = Method->getIdentifier()->getName();
+ // regular method
+ MethodName = getFunctionName(Method);
MethodLinkageName = CGM.getMangledName(Method);
}
OpenPOWER on IntegriCloud