Propagate globals graph from the local to bu to td globals graphs.  This
fixes bug: DSGraph/buglobals.ll

llvm-svn: 6947
diff --git a/llvm/lib/Analysis/DataStructure/TopDownClosure.cpp b/llvm/lib/Analysis/DataStructure/TopDownClosure.cpp
index 3138ada..4058348 100644
--- a/llvm/lib/Analysis/DataStructure/TopDownClosure.cpp
+++ b/llvm/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 @@
 //
 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())