Remove unused private member variables found by clang's new -Wunused-private-field.

llvm-svn: 158086
This commit is contained in:
Benjamin Kramer
2012-06-06 17:32:50 +00:00
parent ccf43ca05c
commit d1d76b2da7
17 changed files with 49 additions and 100 deletions

View File

@@ -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);
}