diff options
author | Chris Lattner <sabre@nondot.org> | 2003-06-28 22:14:55 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-06-28 22:14:55 +0000 |
commit | 312edd330fb70f7b0f476b253b5073cf7d01def3 (patch) | |
tree | d244c70c963ac182162cf0aae7984650972522e9 /lib/Analysis/DataStructure/TopDownClosure.cpp | |
parent | 5e459dbc529d60a6e2c57e8448006ad0d2a8116a (diff) |
Propagate globals graph from the local to bu to td globals graphs. This
fixes bug: DSGraph/buglobals.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6947 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/TopDownClosure.cpp')
-rw-r--r-- | lib/Analysis/DataStructure/TopDownClosure.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/DataStructure/TopDownClosure.cpp b/lib/Analysis/DataStructure/TopDownClosure.cpp index 3138ada646..4058348397 100644 --- a/lib/Analysis/DataStructure/TopDownClosure.cpp +++ b/lib/Analysis/DataStructure/TopDownClosure.cpp @@ -15,7 +15,7 @@ namespace { RegisterAnalysis<TDDataStructures> // Register the pass - Y("tddatastructure", "Top-down Data Structure Analysis Closure"); + Y("tddatastructure", "Top-down Data Structure Analysis"); } // run - Calculate the top down data structure graphs for each function in the @@ -23,7 +23,7 @@ namespace { // bool TDDataStructures::run(Module &M) { BUDataStructures &BU = getAnalysis<BUDataStructures>(); - GlobalsGraph = new DSGraph(); + GlobalsGraph = new DSGraph(BU.getGlobalsGraph()); // Calculate top-down from main... if (Function *F = M.getMainFunction()) |