forked from OSchip/llvm-project
Simplify CGDebugInfo::CollectCXXMemberFunctions a little. More to come.
llvm-svn: 94511
This commit is contained in:
parent
170442fa12
commit
c1821155bf
|
@ -530,22 +530,22 @@ CollectCXXMemberFunctions(const CXXRecordDecl *Decl,
|
||||||
for(CXXRecordDecl::method_iterator I = Decl->method_begin(),
|
for(CXXRecordDecl::method_iterator I = Decl->method_begin(),
|
||||||
E = Decl->method_end(); I != E; ++I) {
|
E = Decl->method_end(); I != E; ++I) {
|
||||||
CXXMethodDecl *Method = *I;
|
CXXMethodDecl *Method = *I;
|
||||||
|
|
||||||
|
if (Method->isImplicit())
|
||||||
|
continue;
|
||||||
|
|
||||||
llvm::StringRef MethodName;
|
llvm::StringRef MethodName;
|
||||||
llvm::StringRef MethodLinkageName;
|
llvm::StringRef MethodLinkageName;
|
||||||
llvm::DIType MethodTy = getOrCreateType(Method->getType(), Unit);
|
llvm::DIType MethodTy = getOrCreateType(Method->getType(), Unit);
|
||||||
if (CXXConstructorDecl *CDecl = dyn_cast<CXXConstructorDecl>(Method)) {
|
if (CXXConstructorDecl *CDecl = dyn_cast<CXXConstructorDecl>(Method)) {
|
||||||
if (CDecl->isImplicit())
|
(void)CDecl;
|
||||||
continue;
|
|
||||||
MethodName = Decl->getName();
|
MethodName = Decl->getName();
|
||||||
// FIXME : Find linkage name.
|
// FIXME : Find linkage name.
|
||||||
} else if (CXXDestructorDecl *DDecl = dyn_cast<CXXDestructorDecl>(Method)) {
|
} else if (CXXDestructorDecl *DDecl = dyn_cast<CXXDestructorDecl>(Method)) {
|
||||||
if (DDecl->isImplicit())
|
(void)DDecl;
|
||||||
continue;
|
|
||||||
MethodName = getFunctionName(Method);
|
MethodName = getFunctionName(Method);
|
||||||
// FIXME : Find linkage name.
|
// FIXME : Find linkage name.
|
||||||
} else {
|
} else {
|
||||||
if (Method->isImplicit())
|
|
||||||
continue;
|
|
||||||
// regular method
|
// regular method
|
||||||
MethodName = getFunctionName(Method);
|
MethodName = getFunctionName(Method);
|
||||||
MethodLinkageName = CGM.getMangledName(Method);
|
MethodLinkageName = CGM.getMangledName(Method);
|
||||||
|
|
Loading…
Reference in New Issue