mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
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
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user