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 | ad7b9c18101b6d26a952e25c72c38ceae890287d (patch) | |
tree | 861c227f464ce94ea52d94746ca8bc2131b91195 /llvm/lib/Analysis/DataStructure/Local.cpp | |
parent | 116f68a990b48a4aa176a5cffb13f860719d7267 (diff) | |
download | bcm5719-llvm-ad7b9c18101b6d26a952e25c72c38ceae890287d.tar.gz bcm5719-llvm-ad7b9c18101b6d26a952e25c72c38ceae890287d.zip |
Remove dead Nodes list
llvm-svn: 7065
Diffstat (limited to 'llvm/lib/Analysis/DataStructure/Local.cpp')
-rw-r--r-- | llvm/lib/Analysis/DataStructure/Local.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/llvm/lib/Analysis/DataStructure/Local.cpp b/llvm/lib/Analysis/DataStructure/Local.cpp index 485aa30d232..641c2e0a1eb 100644 --- a/llvm/lib/Analysis/DataStructure/Local.cpp +++ b/llvm/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 |