From d1d76b2da7493dbba6ab174ff483e73661bd07d7 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Wed, 6 Jun 2012 17:32:50 +0000 Subject: Remove unused private member variables found by clang's new -Wunused-private-field. llvm-svn: 158086 --- clang/lib/Analysis/CallGraph.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'clang/lib/Analysis/CallGraph.cpp') diff --git a/clang/lib/Analysis/CallGraph.cpp b/clang/lib/Analysis/CallGraph.cpp index 96a16c3afe0..6b759567889 100644 --- a/clang/lib/Analysis/CallGraph.cpp +++ b/clang/lib/Analysis/CallGraph.cpp @@ -25,12 +25,11 @@ namespace { /// given function body. class CGBuilder : public StmtVisitor { 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); } -- cgit v1.2.3