diff options
author | Chris Lattner <sabre@nondot.org> | 2003-06-30 03:36:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-06-30 03:36:09 +0000 |
commit | 6d187fdc5a67a83a2e95245394afa77821fa9cd2 (patch) | |
tree | 02743347fffae1df2355141e6e7db92cf6267892 /llvm/lib/Analysis/DataStructure/Local.cpp | |
parent | 88cd8497889a869676f05dd6b397e14aa9931e57 (diff) | |
download | bcm5719-llvm-6d187fdc5a67a83a2e95245394afa77821fa9cd2.tar.gz bcm5719-llvm-6d187fdc5a67a83a2e95245394afa77821fa9cd2.zip |
Move usages of explicit hash_* datastructures to use typedefs
llvm-svn: 6996
Diffstat (limited to 'llvm/lib/Analysis/DataStructure/Local.cpp')
-rw-r--r-- | llvm/lib/Analysis/DataStructure/Local.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/DataStructure/Local.cpp b/llvm/lib/Analysis/DataStructure/Local.cpp index 2b81d1423ce..ebac2690e70 100644 --- a/llvm/lib/Analysis/DataStructure/Local.cpp +++ b/llvm/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 { |