1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Remove dead Nodes list

llvm-svn: 7065
This commit is contained in:
Chris Lattner 2003-07-02 06:06:34 +00:00
parent 56585a82d9
commit c1f922d61e

View File

@ -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