diff options
author | Chris Lattner <sabre@nondot.org> | 2002-11-07 05:20:53 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-11-07 05:20:53 +0000 |
commit | ca03c3b51603e44647def379a0b1b45360ea26aa (patch) | |
tree | e29fedc0e01803a949accdec722fdd57c5313d86 /llvm/lib/Analysis/DataStructure | |
parent | 28c34bd8eb97dcdced2eb84ff23d0595d9ef7291 (diff) | |
download | bcm5719-llvm-ca03c3b51603e44647def379a0b1b45360ea26aa.tar.gz bcm5719-llvm-ca03c3b51603e44647def379a0b1b45360ea26aa.zip |
Rename DataStructureAnalysis namespace to DS
llvm-svn: 4596
Diffstat (limited to 'llvm/lib/Analysis/DataStructure')
4 files changed, 6 insertions, 18 deletions
diff --git a/llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp b/llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp index a1f739c4e84..02a9e64408c 100644 --- a/llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp +++ b/llvm/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/llvm/lib/Analysis/DataStructure/DataStructure.cpp b/llvm/lib/Analysis/DataStructure/DataStructure.cpp index 18192a1c4ad..ff2a4b8e0a3 100644 --- a/llvm/lib/Analysis/DataStructure/DataStructure.cpp +++ b/llvm/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/llvm/lib/Analysis/DataStructure/Local.cpp b/llvm/lib/Analysis/DataStructure/Local.cpp index bc2065ef653..b3195c2befc 100644 --- a/llvm/lib/Analysis/DataStructure/Local.cpp +++ b/llvm/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/llvm/lib/Analysis/DataStructure/TopDownClosure.cpp b/llvm/lib/Analysis/DataStructure/TopDownClosure.cpp index cca6c16cefb..69422caa8f0 100644 --- a/llvm/lib/Analysis/DataStructure/TopDownClosure.cpp +++ b/llvm/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); |