[cfe-commits] r76294 - /cfe/trunk/lib/Analysis/CallGraph.cpp
Zhongxing Xu
xuzhongxing at gmail.com
Sat Jul 18 01:49:17 PDT 2009
Author: zhongxingxu
Date: Sat Jul 18 03:49:07 2009
New Revision: 76294
URL: http://llvm.org/viewvc/llvm-project?rev=76294&view=rev
Log:
Replace stmt visitors with the fall back method.
Modified:
cfe/trunk/lib/Analysis/CallGraph.cpp
Modified: cfe/trunk/lib/Analysis/CallGraph.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CallGraph.cpp?rev=76294&r1=76293&r2=76294&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/CallGraph.cpp (original)
+++ cfe/trunk/lib/Analysis/CallGraph.cpp Sat Jul 18 03:49:07 2009
@@ -33,27 +33,7 @@
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);
More information about the cfe-commits
mailing list