[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/DataStructure.cpp TopDownClosure.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Oct 21 08:32:01 PDT 2002
Changes in directory llvm/lib/Analysis/DataStructure:
DataStructure.cpp updated: 1.31 -> 1.32
TopDownClosure.cpp updated: 1.12 -> 1.13
---
Log message:
Remove some unneccesary 'using' directives
---
Diffs of the changes:
Index: llvm/lib/Analysis/DataStructure/DataStructure.cpp
diff -u llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.31 llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.32
--- llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.31 Sun Oct 20 21:18:55 2002
+++ llvm/lib/Analysis/DataStructure/DataStructure.cpp Mon Oct 21 08:31:48 2002
@@ -386,7 +386,7 @@
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: llvm/lib/Analysis/DataStructure/TopDownClosure.cpp
diff -u llvm/lib/Analysis/DataStructure/TopDownClosure.cpp:1.12 llvm/lib/Analysis/DataStructure/TopDownClosure.cpp:1.13
--- llvm/lib/Analysis/DataStructure/TopDownClosure.cpp:1.12 Sun Oct 20 21:08:03 2002
+++ llvm/lib/Analysis/DataStructure/TopDownClosure.cpp Mon Oct 21 08:31:48 2002
@@ -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 @@
// 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 &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 @@
// 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();
More information about the llvm-commits
mailing list