summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/CallGraph.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-06-06 17:32:50 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-06-06 17:32:50 +0000
commitd1d76b2da7493dbba6ab174ff483e73661bd07d7 (patch)
tree346ae5568147ebef2250df7a03fb8078abb029cd /clang/lib/Analysis/CallGraph.cpp
parentccf43ca05cb1540f3d95a73b7b329bf926808c7b (diff)
downloadbcm5719-llvm-d1d76b2da7493dbba6ab174ff483e73661bd07d7.tar.gz
bcm5719-llvm-d1d76b2da7493dbba6ab174ff483e73661bd07d7.zip
Remove unused private member variables found by clang's new -Wunused-private-field.
llvm-svn: 158086
Diffstat (limited to 'clang/lib/Analysis/CallGraph.cpp')
-rw-r--r--clang/lib/Analysis/CallGraph.cpp7
1 files changed, 3 insertions, 4 deletions
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<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);
}
OpenPOWER on IntegriCloud