summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-01-26 04:40:11 +0000
committerAnders Carlsson <andersca@mac.com>2010-01-26 04:40:11 +0000
commitc1821155bf6f1e52463b51c25f03b4abf7f77c79 (patch)
tree5f623295f7d1bd3d7819a728e286990aa41c7807
parent170442fa1288c71c4b41a196b36ee53a6e4bf878 (diff)
downloadbcm5719-llvm-c1821155bf6f1e52463b51c25f03b4abf7f77c79.tar.gz
bcm5719-llvm-c1821155bf6f1e52463b51c25f03b4abf7f77c79.zip
Simplify CGDebugInfo::CollectCXXMemberFunctions a little. More to come.
llvm-svn: 94511
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 412552be1c6..5d3c2cd84d0 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -530,22 +530,22 @@ CollectCXXMemberFunctions(const CXXRecordDecl *Decl,
for(CXXRecordDecl::method_iterator I = Decl->method_begin(),
E = Decl->method_end(); I != E; ++I) {
CXXMethodDecl *Method = *I;
+
+ if (Method->isImplicit())
+ continue;
+
llvm::StringRef MethodName;
llvm::StringRef MethodLinkageName;
llvm::DIType MethodTy = getOrCreateType(Method->getType(), Unit);
if (CXXConstructorDecl *CDecl = dyn_cast<CXXConstructorDecl>(Method)) {
- if (CDecl->isImplicit())
- continue;
+ (void)CDecl;
MethodName = Decl->getName();
// FIXME : Find linkage name.
} else if (CXXDestructorDecl *DDecl = dyn_cast<CXXDestructorDecl>(Method)) {
- if (DDecl->isImplicit())
- continue;
+ (void)DDecl;
MethodName = getFunctionName(Method);
// FIXME : Find linkage name.
} else {
- if (Method->isImplicit())
- continue;
// regular method
MethodName = getFunctionName(Method);
MethodLinkageName = CGM.getMangledName(Method);
OpenPOWER on IntegriCloud