diff options
author | Anders Carlsson <andersca@mac.com> | 2010-01-26 04:40:11 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2010-01-26 04:40:11 +0000 |
commit | bea9b2375a6c5c121dcd83d4f2d544803bacd962 (patch) | |
tree | 380af4fbd57820f0593d6cb653e39b3a8ff5425d /lib/CodeGen/CGDebugInfo.cpp | |
parent | 071c81065a282edba989bcf7c260b5838a59db50 (diff) |
Simplify CGDebugInfo::CollectCXXMemberFunctions a little. More to come.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94511 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 412552be1c..5d3c2cd84d 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/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); |