Rename DataStructureAnalysis namespace to DS
authorChris Lattner <sabre@nondot.org>
Thu, 7 Nov 2002 05:20:53 +0000 (05:20 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 7 Nov 2002 05:20:53 +0000 (05:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4596 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/DataStructure/BottomUpClosure.cpp
lib/Analysis/DataStructure/DataStructure.cpp
lib/Analysis/DataStructure/Local.cpp
lib/Analysis/DataStructure/TopDownClosure.cpp

index a1f739c4e84e28efb225a89f1644bd54a7792961..02a9e64408caed2e1abce6e701d57faaf4d144a2 100644 (file)
@@ -16,13 +16,7 @@ using std::map;
 static RegisterAnalysis<BUDataStructures>
 X("budatastructure", "Bottom-up Data Structure Analysis Closure");
 
-namespace DataStructureAnalysis { // TODO: FIXME: Eliminate
-  // isPointerType - Return true if this first class type is big enough to hold
-  // a pointer.
-  //
-  bool isPointerType(const Type *Ty);
-}
-using namespace DataStructureAnalysis;
+using namespace DS;
 
 
 // releaseMemory - If the pass pipeline is done with this pass, we can release
index 18192a1c4ad422c5513d73f1bb462ae3628e416c..ff2a4b8e0a3ddfe89e415981e1fe3d7b4c81c7ab 100644 (file)
@@ -20,14 +20,10 @@ namespace {
   Statistic<> NumFolds("dsnode", "Number of nodes completely folded");
 };
 
-namespace DataStructureAnalysis {   // TODO: FIXME
-  // isPointerType - Return true if this first class type is big enough to hold
-  // a pointer.
-  //
-  bool isPointerType(const Type *Ty);
+namespace DS {   // TODO: FIXME
   extern TargetData TD;
 }
-using namespace DataStructureAnalysis;
+using namespace DS;
 
 //===----------------------------------------------------------------------===//
 // DSNode Implementation
index bc2065ef653196074833f9f839f366f3542a11f2..b3195c2befce0a364fd326196b158b92ca48556c 100644 (file)
@@ -30,12 +30,9 @@ using std::vector;
 static RegisterAnalysis<LocalDataStructures>
 X("datastructure", "Local Data Structure Analysis");
 
-using namespace DataStructureAnalysis;
-
-namespace DataStructureAnalysis {
+namespace DS {
   // FIXME: Do something smarter with target data!
   TargetData TD("temp-td");
-  unsigned PointerSize(TD.getPointerSize());
 
   // isPointerType - Return true if this type is big enough to hold a pointer.
   bool isPointerType(const Type *Ty) {
@@ -46,6 +43,7 @@ namespace DataStructureAnalysis {
     return false;
   }
 }
+using namespace DS;
 
 
 namespace {
index cca6c16cefb12fa109c390f6b8a83a466ac21d3f..69422caa8f0ba965822218479e2032e66b7876de 100644 (file)
@@ -68,7 +68,7 @@ void TDDataStructures::ResolveCallSite(DSGraph &Graph,
 
   for (unsigned i = 0, e = CallSite.getNumPtrArgs(); i != e; ++i, ++AI) {
     // Advance the argument iterator to the first pointer argument...
-    while (!DataStructureAnalysis::isPointerType(AI->getType())) ++AI;
+    while (!DS::isPointerType(AI->getType())) ++AI;
     
     // TD ...Merge the formal arg scalar with the actual arg node
     DSNodeHandle &NodeForFormal = Graph.getNodeForValue(AI);