aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/DataStructure
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-11-07 05:20:53 +0000
committerChris Lattner <sabre@nondot.org>2002-11-07 05:20:53 +0000
commitb10604341fa3771bf6d76e1185616f9073450f3c (patch)
treebff3742f27c36fd3109be6c69e54efa644c4ed2d /lib/Analysis/DataStructure
parente83cb5316b85ef9f888b186c1a533865051746f2 (diff)
Rename DataStructureAnalysis namespace to DS
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4596 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure')
-rw-r--r--lib/Analysis/DataStructure/BottomUpClosure.cpp8
-rw-r--r--lib/Analysis/DataStructure/DataStructure.cpp8
-rw-r--r--lib/Analysis/DataStructure/Local.cpp6
-rw-r--r--lib/Analysis/DataStructure/TopDownClosure.cpp2
4 files changed, 6 insertions, 18 deletions
diff --git a/lib/Analysis/DataStructure/BottomUpClosure.cpp b/lib/Analysis/DataStructure/BottomUpClosure.cpp
index a1f739c4e8..02a9e64408 100644
--- a/lib/Analysis/DataStructure/BottomUpClosure.cpp
+++ b/lib/Analysis/DataStructure/BottomUpClosure.cpp
@@ -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
diff --git a/lib/Analysis/DataStructure/DataStructure.cpp b/lib/Analysis/DataStructure/DataStructure.cpp
index 18192a1c4a..ff2a4b8e0a 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 bc2065ef65..b3195c2bef 100644
--- a/lib/Analysis/DataStructure/Local.cpp
+++ b/lib/Analysis/DataStructure/Local.cpp
@@ -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 {
diff --git a/lib/Analysis/DataStructure/TopDownClosure.cpp b/lib/Analysis/DataStructure/TopDownClosure.cpp
index cca6c16cef..69422caa8f 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);