From b10604341fa3771bf6d76e1185616f9073450f3c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 7 Nov 2002 05:20:53 +0000 Subject: [PATCH] Rename DataStructureAnalysis namespace to DS git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4596 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/DataStructure/BottomUpClosure.cpp | 8 +------- lib/Analysis/DataStructure/DataStructure.cpp | 8 ++------ lib/Analysis/DataStructure/Local.cpp | 6 ++---- lib/Analysis/DataStructure/TopDownClosure.cpp | 2 +- 4 files changed, 6 insertions(+), 18 deletions(-) diff --git a/lib/Analysis/DataStructure/BottomUpClosure.cpp b/lib/Analysis/DataStructure/BottomUpClosure.cpp index a1f739c4e84..02a9e64408c 100644 --- a/lib/Analysis/DataStructure/BottomUpClosure.cpp +++ b/lib/Analysis/DataStructure/BottomUpClosure.cpp @@ -16,13 +16,7 @@ using std::map; static RegisterAnalysis 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 diff --git a/lib/Analysis/DataStructure/DataStructure.cpp b/lib/Analysis/DataStructure/DataStructure.cpp index 18192a1c4ad..ff2a4b8e0a3 100644 --- a/lib/Analysis/DataStructure/DataStructure.cpp +++ b/lib/Analysis/DataStructure/DataStructure.cpp @@ -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 diff --git a/lib/Analysis/DataStructure/Local.cpp b/lib/Analysis/DataStructure/Local.cpp index bc2065ef653..b3195c2befc 100644 --- a/lib/Analysis/DataStructure/Local.cpp +++ b/lib/Analysis/DataStructure/Local.cpp @@ -30,12 +30,9 @@ using std::vector; static RegisterAnalysis 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 { diff --git a/lib/Analysis/DataStructure/TopDownClosure.cpp b/lib/Analysis/DataStructure/TopDownClosure.cpp index cca6c16cefb..69422caa8f0 100644 --- a/lib/Analysis/DataStructure/TopDownClosure.cpp +++ b/lib/Analysis/DataStructure/TopDownClosure.cpp @@ -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); -- 2.34.1