aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/DataStructure/Local.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-06-30 03:36:09 +0000
committerChris Lattner <sabre@nondot.org>2003-06-30 03:36:09 +0000
commit8d32767da44c6b06033fe305f3fd8e73ba042b4a (patch)
treee0943a84efe2cfe370657a15b6d9b0da6cb75672 /lib/Analysis/DataStructure/Local.cpp
parent4f00818cd990a15e00e716ef444bd3a672372318 (diff)
Move usages of explicit hash_* datastructures to use typedefs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6996 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/Local.cpp')
-rw-r--r--lib/Analysis/DataStructure/Local.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/Analysis/DataStructure/Local.cpp b/lib/Analysis/DataStructure/Local.cpp
index 2b81d1423c..ebac2690e7 100644
--- a/lib/Analysis/DataStructure/Local.cpp
+++ b/lib/Analysis/DataStructure/Local.cpp
@@ -149,10 +149,9 @@ DSGraph::DSGraph(Function &F, DSGraph *GG) : GlobalsGraph(GG) {
#endif
// Remove all integral constants from the scalarmap!
- for (hash_map<Value*, DSNodeHandle>::iterator I = ScalarMap.begin();
- I != ScalarMap.end();)
+ for (ScalarMapTy::iterator I = ScalarMap.begin(); I != ScalarMap.end();)
if (isa<ConstantIntegral>(I->first)) {
- hash_map<Value*, DSNodeHandle>::iterator J = I++;
+ ScalarMapTy::iterator J = I++;
ScalarMap.erase(J);
} else
++I;
@@ -190,7 +189,7 @@ DSNodeHandle GraphBuilder::getValueDest(Value &Val) {
NH = getValueDest(*CE->getOperand(0));
else if (CE->getOpcode() == Instruction::GetElementPtr) {
visitGetElementPtrInst(*CE);
- hash_map<Value*, DSNodeHandle>::iterator I = ScalarMap.find(CE);
+ DSGraph::ScalarMapTy::iterator I = ScalarMap.find(CE);
assert(I != ScalarMap.end() && "GEP didn't get processed right?");
NH = I->second;
} else {