diff options
author | Chris Lattner <sabre@nondot.org> | 2003-07-02 06:06:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-07-02 06:06:34 +0000 |
commit | 44cfdf9b9a682d0d3f90949a50d23670b11ce561 (patch) | |
tree | cf49f278787a99eecac35b069526da548aa1eb46 /lib/Analysis/DataStructure/Local.cpp | |
parent | a8da51bf51d94de243b2e13c8e5b3c03a8116ba4 (diff) |
Remove dead Nodes list
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7065 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/Local.cpp')
-rw-r--r-- | lib/Analysis/DataStructure/Local.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/Analysis/DataStructure/Local.cpp b/lib/Analysis/DataStructure/Local.cpp index 485aa30d23..641c2e0a1e 100644 --- a/lib/Analysis/DataStructure/Local.cpp +++ b/lib/Analysis/DataStructure/Local.cpp @@ -64,16 +64,14 @@ namespace { class GraphBuilder : InstVisitor<GraphBuilder> { Function &F; DSGraph &G; - std::vector<DSNode*> &Nodes; DSNodeHandle &RetNode; // Node that gets returned... DSGraph::ScalarMapTy &ScalarMap; std::vector<DSCallSite> &FunctionCalls; public: - GraphBuilder(Function &f, DSGraph &g, std::vector<DSNode*> &nodes, - DSNodeHandle &retNode, DSGraph::ScalarMapTy &SM, - std::vector<DSCallSite> &fc) - : F(f), G(g), Nodes(nodes), RetNode(retNode), ScalarMap(SM), + GraphBuilder(Function &f, DSGraph &g, DSNodeHandle &retNode, + DSGraph::ScalarMapTy &SM, std::vector<DSCallSite> &fc) + : F(f), G(g), RetNode(retNode), ScalarMap(SM), FunctionCalls(fc) { // Create scalar nodes for all pointer arguments... @@ -146,7 +144,7 @@ DSGraph::DSGraph(Function &F, DSGraph *GG) : GlobalsGraph(GG) { DEBUG(std::cerr << " [Loc] Calculating graph for: " << F.getName() << "\n"); // Use the graph builder to construct the local version of the graph - GraphBuilder B(F, *this, Nodes, ReturnNodes[&F], ScalarMap, FunctionCalls); + GraphBuilder B(F, *this, ReturnNodes[&F], ScalarMap, FunctionCalls); #ifndef NDEBUG Timer::addPeakMemoryMeasurement(); #endif |