Bitcode: Simplify how we enumerate summaries in the index. NFCI.
authorPeter Collingbourne <peter@pcc.me.uk>
Tue, 2 May 2017 17:48:39 +0000 (17:48 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Tue, 2 May 2017 17:48:39 +0000 (17:48 +0000)
commit7c2c4097a0f1b1db8f7167ea4880bada85082931
treeb54e423560f5db65360a626079aa5c41e9295879
parentc1f8d7a1691632ec117817b3a127caea780190d9
Bitcode: Simplify how we enumerate summaries in the index. NFCI.

Instead of defining a custom iterator class, just use a function with a
callback, which is much easier to understand and less error prone.

Differential Revision: https://reviews.llvm.org/D32470

llvm-svn: 301942
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp