]> granicus.if.org Git - clang/commitdiff
CallGraph: add a bunch of stmt visitors.
authorZhongxing Xu <xuzhongxing@gmail.com>
Fri, 17 Jul 2009 07:05:19 +0000 (07:05 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Fri, 17 Jul 2009 07:05:19 +0000 (07:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76161 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/CallGraph.cpp

index 422c5013cc8d3922b2f41c69c8e343d58a29f686..16f14d787f4fcb961dc397a8f020cac4772e1311 100644 (file)
@@ -33,13 +33,27 @@ public:
   CGBuilder(CallGraph &g, FunctionDecl *fd, Entity *E, CallGraphNode *N)
     : G(g), FD(fd), CallerEnt(E), CallerNode(N) {}
 
-  void VisitCompoundStmt(CompoundStmt *S) {
-    VisitChildren(S);
-  }
+  void VisitCompoundStmt(CompoundStmt *S) { VisitChildren(S); }
 
-  void VisitIfStmt(IfStmt *S) {
-    VisitChildren(S);
-  }
+  void VisitCastStmt(CaseStmt *S) { VisitChildren(S); }
+
+  void VisitDefaultStmt(DefaultStmt *S) { VisitChildren(S); }
+
+  void VisitLabelStmt(LabelStmt *S) { VisitChildren(S); }
+
+  void VisitIfStmt(IfStmt *S) { VisitChildren(S); }
+
+  void VisitSwitchStmt(SwitchStmt *S) { VisitChildren(S); }
+
+  void VisitDoStmt(DoStmt *S) { VisitChildren(S); }
+
+  void VisitForStmt(ForStmt *S) { VisitChildren(S); }
+
+  void VisitIndirectGotoStmt(IndirectGotoStmt *S) { VisitChildren(S); }
+
+  void VisitReturnStmt(ReturnStmt *S) { VisitChildren(S); }
+
+  void VisitDeclStmt(DeclStmt *S) { VisitChildren(S); }
 
   void VisitCallExpr(CallExpr *CE);