[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/Local.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Jul 2 01:07:01 PDT 2003
Changes in directory llvm/lib/Analysis/DataStructure:
Local.cpp updated: 1.58 -> 1.59
---
Log message:
Remove dead Nodes list
---
Diffs of the changes:
Index: llvm/lib/Analysis/DataStructure/Local.cpp
diff -u llvm/lib/Analysis/DataStructure/Local.cpp:1.58 llvm/lib/Analysis/DataStructure/Local.cpp:1.59
--- llvm/lib/Analysis/DataStructure/Local.cpp:1.58 Tue Jul 1 23:37:26 2003
+++ llvm/lib/Analysis/DataStructure/Local.cpp Wed Jul 2 01:06:34 2003
@@ -64,16 +64,14 @@
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 @@
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
More information about the llvm-commits
mailing list