[cfe-commits] r76161 - /cfe/trunk/lib/Analysis/CallGraph.cpp
Zhongxing Xu
xuzhongxing at gmail.com
Fri Jul 17 00:05:33 PDT 2009
Author: zhongxingxu
Date: Fri Jul 17 02:05:19 2009
New Revision: 76161
URL: http://llvm.org/viewvc/llvm-project?rev=76161&view=rev
Log:
CallGraph: add a bunch of stmt visitors.
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=76161&r1=76160&r2=76161&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/CallGraph.cpp (original)
+++ cfe/trunk/lib/Analysis/CallGraph.cpp Fri Jul 17 02:05:19 2009
@@ -33,13 +33,27 @@
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);
More information about the cfe-commits
mailing list