diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-07-18 08:49:07 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-07-18 08:49:07 +0000 |
commit | 93cbae3bc6a8a5cc963b3b8e5cc2f49386be70df (patch) | |
tree | d6d1bd362ebfb6230af671ad20b75f8fb756e1d8 /lib/Analysis/CallGraph.cpp | |
parent | 63b9cfe8f2aaec53710b59e565bb8d5afb558b40 (diff) |
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
Diffstat (limited to 'lib/Analysis/CallGraph.cpp')
-rw-r--r-- | lib/Analysis/CallGraph.cpp | 22 |
1 files changed, 1 insertions, 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); |