Also handle CXXConstructor, CXXDestructor and CXXConversion in CFG

printing.

llvm-svn: 93968
This commit is contained in:
Mike Stump 2010-01-20 02:28:05 +00:00
parent 7771b7c621
commit 06c1d87d14
1 changed files with 4 additions and 2 deletions

View File

@ -228,6 +228,9 @@ void AnalysisConsumer::HandleTopLevelSingleDecl(Decl *D) {
break;
}
case Decl::CXXConstructor:
case Decl::CXXDestructor:
case Decl::CXXConversion:
case Decl::CXXMethod: {
CXXMethodDecl *CXXMD = cast<CXXMethodDecl>(D);
@ -236,8 +239,7 @@ void AnalysisConsumer::HandleTopLevelSingleDecl(Decl *D) {
return;
Stmt *Body = CXXMD->getBody();
if (Body)
HandleCode(CXXMD, Body, FunctionActions);
if (Body) HandleCode(CXXMD, Body, FunctionActions);
break;
}