mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-18 16:03:17 +00:00
Convert postincrements to more efficient preincrements
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e02cb164b1
commit
17262f7784
@ -17,7 +17,7 @@ template<class ValueSubclass, class ItemParentType>
|
||||
void ValueHolder<ValueSubclass,ItemParentType>::setParent(SymTabValue *P) {
|
||||
if (Parent) { // Remove all of the items from the old symbol table..
|
||||
SymbolTable *SymTab = Parent->getSymbolTable();
|
||||
for (iterator I = begin(); I != end(); I++)
|
||||
for (iterator I = begin(); I != end(); ++I)
|
||||
if ((*I)->hasName()) SymTab->remove(*I);
|
||||
}
|
||||
|
||||
@ -25,7 +25,7 @@ void ValueHolder<ValueSubclass,ItemParentType>::setParent(SymTabValue *P) {
|
||||
|
||||
if (Parent) { // Remove all of the items from the old symbol table..
|
||||
SymbolTable *SymTab = Parent->getSymbolTableSure();
|
||||
for (iterator I = begin(); I != end(); I++)
|
||||
for (iterator I = begin(); I != end(); ++I)
|
||||
if ((*I)->hasName()) SymTab->insert(*I);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user