diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-09-03 01:22:56 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-09-03 01:22:56 +0000 |
| commit | 8cc24eadd2e6269b76a2b5c715a0af8b701dbda1 (patch) | |
| tree | 439a57293cc7faaf9a52a7bf69cd148538e6e098 /llvm/lib/IR | |
| parent | e974f572980121460ec5e1007dfd0f2e3f90b3db (diff) | |
| download | bcm5719-llvm-8cc24eadd2e6269b76a2b5c715a0af8b701dbda1.tar.gz bcm5719-llvm-8cc24eadd2e6269b76a2b5c715a0af8b701dbda1.zip | |
ADT: Remove external uses of ilist_iterator, NFC
Delete the dead code for Write(ilist_iterator) in the IR Verifier,
inline report(ilist_iterator) at its call sites in the MachineVerifier,
and use simple_ilist<>::iterator in SymbolTableListTraits.
The only remaining reference to ilist_iterator outside of the ilist
implementation is from MachineInstrBundleIterator. I'll get rid of that
in a follow-up.
llvm-svn: 280565
Diffstat (limited to 'llvm/lib/IR')
| -rw-r--r-- | llvm/lib/IR/SymbolTableListTraitsImpl.h | 3 | ||||
| -rw-r--r-- | llvm/lib/IR/Verifier.cpp | 4 |
2 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/IR/SymbolTableListTraitsImpl.h b/llvm/lib/IR/SymbolTableListTraitsImpl.h index a55cf6a35a0..6ddab6b4c69 100644 --- a/llvm/lib/IR/SymbolTableListTraitsImpl.h +++ b/llvm/lib/IR/SymbolTableListTraitsImpl.h @@ -81,8 +81,7 @@ void SymbolTableListTraits<ValueSubClass>::removeNodeFromList( template <typename ValueSubClass> void SymbolTableListTraits<ValueSubClass>::transferNodesFromList( - SymbolTableListTraits &L2, ilist_iterator<ValueSubClass> first, - ilist_iterator<ValueSubClass> last) { + SymbolTableListTraits &L2, iterator first, iterator last) { // We only have to do work here if transferring instructions between BBs ItemParentClass *NewIP = getListOwner(), *OldIP = L2.getListOwner(); assert(NewIP != OldIP && "Expected different list owners"); diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp index a4592313f36..6e9eb7476a1 100644 --- a/llvm/lib/IR/Verifier.cpp +++ b/llvm/lib/IR/Verifier.cpp @@ -137,10 +137,6 @@ struct VerifierSupport { : OS(OS), M(M), MST(&M), DL(M.getDataLayout()), Context(M.getContext()) {} private: - template <class NodeTy> void Write(const ilist_iterator<NodeTy> &I) { - Write(&*I); - } - void Write(const Module *M) { *OS << "; ModuleID = '" << M->getModuleIdentifier() << "'\n"; } |

