[cfe-commits] r93968 - /cfe/trunk/lib/Frontend/AnalysisConsumer.cpp

Mike Stump mrs at apple.com
Tue Jan 19 18:28:05 PST 2010


Author: mrs
Date: Tue Jan 19 20:28:05 2010
New Revision: 93968

URL: http://llvm.org/viewvc/llvm-project?rev=93968&view=rev
Log:
Also handle CXXConstructor, CXXDestructor and CXXConversion in CFG
printing.

Modified:
    cfe/trunk/lib/Frontend/AnalysisConsumer.cpp

Modified: cfe/trunk/lib/Frontend/AnalysisConsumer.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/AnalysisConsumer.cpp?rev=93968&r1=93967&r2=93968&view=diff

==============================================================================
--- cfe/trunk/lib/Frontend/AnalysisConsumer.cpp (original)
+++ cfe/trunk/lib/Frontend/AnalysisConsumer.cpp Tue Jan 19 20:28:05 2010
@@ -228,6 +228,9 @@
     break;
   }
 
+  case Decl::CXXConstructor:
+  case Decl::CXXDestructor:
+  case Decl::CXXConversion:
   case Decl::CXXMethod: {
     CXXMethodDecl *CXXMD = cast<CXXMethodDecl>(D);
 
@@ -236,8 +239,7 @@
       return;
 
     Stmt *Body = CXXMD->getBody();
-    if (Body)
-      HandleCode(CXXMD, Body, FunctionActions);
+    if (Body) HandleCode(CXXMD, Body, FunctionActions);
     break;
   }
 





More information about the cfe-commits mailing list