diff options
Diffstat (limited to 'lib/Analysis/CallGraph.cpp')
-rw-r--r-- | lib/Analysis/CallGraph.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/Analysis/CallGraph.cpp b/lib/Analysis/CallGraph.cpp index 96a16c3..6b75956 100644 --- a/lib/Analysis/CallGraph.cpp +++ b/lib/Analysis/CallGraph.cpp @@ -25,12 +25,11 @@ namespace { /// given function body. class CGBuilder : public StmtVisitor<CGBuilder> { CallGraph *G; - const Decl *FD; CallGraphNode *CallerNode; public: - CGBuilder(CallGraph *g, const Decl *D, CallGraphNode *N) - : G(g), FD(D), CallerNode(N) {} + CGBuilder(CallGraph *g, CallGraphNode *N) + : G(g), CallerNode(N) {} void VisitStmt(Stmt *S) { VisitChildren(S); } @@ -99,7 +98,7 @@ void CallGraph::addNodeForDecl(Decl* D, bool IsGlobal) { Root->addCallee(Node, this); // Process all the calls by this function as well. - CGBuilder builder(this, D, Node); + CGBuilder builder(this, Node); if (Stmt *Body = D->getBody()) builder.Visit(Body); } |