Remove some unneccesary 'using' directives
authorChris Lattner <sabre@nondot.org>
Mon, 21 Oct 2002 13:31:48 +0000 (13:31 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 21 Oct 2002 13:31:48 +0000 (13:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4246 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/DataStructure/DataStructure.cpp
lib/Analysis/DataStructure/TopDownClosure.cpp

index b75d8dc8a46aaeb7e4ceb06e66bfb9b43a3d5b1f..d40be448113c929e61ea3fc5fe63d243cdea5372 100644 (file)
@@ -386,7 +386,7 @@ DSGraph::DSGraph(const DSGraph &G) : Func(G.Func) {
 DSGraph::~DSGraph() {
   FunctionCalls.clear();
   ValueMap.clear();
-  RetNode = 0;
+  RetNode.setNode(0);
 
 #ifndef NDEBUG
   // Drop all intra-node references, so that assertions don't fail...
index 7db811dbca9878004a51df9f2619a7d447ab9d16..e8a720eb663ca4d1dce1ebea0908c77554206f05 100644 (file)
@@ -12,8 +12,6 @@
 #include "llvm/Module.h"
 #include "llvm/DerivedTypes.h"
 #include "Support/Statistic.h"
-using std::map;
-using std::vector;
 
 static RegisterAnalysis<TDDataStructures>
 Y("tddatastructure", "Top-down Data Structure Analysis Closure");
@@ -22,7 +20,7 @@ Y("tddatastructure", "Top-down Data Structure Analysis Closure");
 // our memory... here...
 //
 void TDDataStructures::releaseMemory() {
-  for (map<const Function*, DSGraph*>::iterator I = DSInfo.begin(),
+  for (std::map<const Function*, DSGraph*>::iterator I = DSInfo.begin(),
          E = DSInfo.end(); I != E; ++I)
     delete I->second;
 
@@ -86,7 +84,7 @@ DSGraph &TDDataStructures::calculateGraph(Function &F) {
   DSGraph &BUGraph = BU.getDSGraph(F);
   Graph = new DSGraph(BUGraph);
 
-  const vector<DSCallSite> *CallSitesP = BU.getCallSites(F);
+  const std::vector<DSCallSite> *CallSitesP = BU.getCallSites(F);
   if (CallSitesP == 0) {
     DEBUG(std::cerr << "  [TD] No callers for: " << F.getName() << "\n");
     return *Graph;  // If no call sites, the graph is the same as the BU graph!
@@ -96,7 +94,7 @@ DSGraph &TDDataStructures::calculateGraph(Function &F) {
   // graph.
   //
   DEBUG(std::cerr << "  [TD] Inlining callers for: " << F.getName() << "\n");
-  const vector<DSCallSite> &CallSites = *CallSitesP;
+  const std::vector<DSCallSite> &CallSites = *CallSitesP;
   for (unsigned c = 0, ce = CallSites.size(); c != ce; ++c) {
     const DSCallSite &CallSite = CallSites[c];  // Copy
     Function &Caller = CallSite.getCaller();