From 93cbae3bc6a8a5cc963b3b8e5cc2f49386be70df Mon Sep 17 00:00:00 2001 From: Zhongxing Xu Date: Sat, 18 Jul 2009 08:49:07 +0000 Subject: [PATCH] Replace stmt visitors with the fall back method. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76294 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/CallGraph.cpp | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/lib/Analysis/CallGraph.cpp b/lib/Analysis/CallGraph.cpp index b4f57b8fde..cf8f6205ab 100644 --- a/lib/Analysis/CallGraph.cpp +++ b/lib/Analysis/CallGraph.cpp @@ -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); -- 2.50.1