]> granicus.if.org Git - clang/commitdiff
Replace stmt visitors with the fall back method.
authorZhongxing Xu <xuzhongxing@gmail.com>
Sat, 18 Jul 2009 08:49:07 +0000 (08:49 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Sat, 18 Jul 2009 08:49:07 +0000 (08:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76294 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/CallGraph.cpp

index b4f57b8fde47be17c9a7302ac5f941d9296f7226..cf8f6205abe4db6a99a2e5c369128f9ca798cbdc 100644 (file)
@@ -33,27 +33,7 @@ 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 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 VisitStmt(Stmt *S) { VisitChildren(S); }
 
   void VisitCallExpr(CallExpr *CE);