diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-10-06 22:37:47 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-10-06 22:37:47 +0000 |
commit | 55a0c43f8ef25f35693f6ebc8efe49a4089f25ab (patch) | |
tree | ddde00d5abbf948c9097fc98668eac124314c363 /llvm/lib | |
parent | a59824a174f69fc07f715efc220e26f8c2620e3c (diff) | |
download | bcm5719-llvm-55a0c43f8ef25f35693f6ebc8efe49a4089f25ab.tar.gz bcm5719-llvm-55a0c43f8ef25f35693f6ebc8efe49a4089f25ab.zip |
IR: Use auto for iterators, NFC
llvm-svn: 249480
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/IR/SymbolTableListTraitsImpl.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/IR/SymbolTableListTraitsImpl.h b/llvm/lib/IR/SymbolTableListTraitsImpl.h index 8eba24f8300..4d17d75859c 100644 --- a/llvm/lib/IR/SymbolTableListTraitsImpl.h +++ b/llvm/lib/IR/SymbolTableListTraitsImpl.h @@ -46,16 +46,14 @@ void SymbolTableListTraits<ValueSubClass,ItemParentClass> if (OldST) { // Remove all entries from the previous symtab. - for (typename iplist<ValueSubClass>::iterator I = ItemList.begin(); - I != ItemList.end(); ++I) + for (auto I = ItemList.begin(); I != ItemList.end(); ++I) if (I->hasName()) OldST->removeValueName(I->getValueName()); } if (NewST) { // Add all of the items to the new symtab. - for (typename iplist<ValueSubClass>::iterator I = ItemList.begin(); - I != ItemList.end(); ++I) + for (auto I = ItemList.begin(); I != ItemList.end(); ++I) if (I->hasName()) NewST->reinsertValue(I); } |