1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00

Convert postincrements to more efficient preincrements

llvm-svn: 81
This commit is contained in:
Chris Lattner 2001-06-27 23:28:02 +00:00
parent 159093b8fe
commit 3ecce840dc

View File

@ -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);
}
}