1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

Add GlobalDSGraph -- a common graph that holds externally visible nodes.

llvm-svn: 3173
This commit is contained in:
Vikram S. Adve 2002-07-30 22:08:08 +00:00
parent abafb80e33
commit 6162134b47

View File

@ -109,10 +109,14 @@ namespace {
//===----------------------------------------------------------------------===//
// DSGraph constructor - Simply use the GraphBuilder to construct the local
// graph.
DSGraph::DSGraph(Function &F) : Func(F), RetNode(0) {
// Use the graph builder to construct the local version of the graph
GraphBuilder B(*this, Nodes, RetNode, ValueMap, FunctionCalls);
markIncompleteNodes();
DSGraph::DSGraph(Function &F, GlobalDSGraph* GlobalsG)
: Func(F), RetNode(0), GlobalsGraph(GlobalsG) {
if (GlobalsGraph != this) {
GlobalsGraph->addReference(this);
// Use the graph builder to construct the local version of the graph
GraphBuilder B(*this, Nodes, RetNode, ValueMap, FunctionCalls);
markIncompleteNodes();
}
}