]> granicus.if.org Git - llvm/commit
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)
commit78070a72ad68513b6325dbca529fb61ead5fc0fb
tree398de93998ca6c7561ed0d32763f4c0e42141807
parent4f77dbb38b2727fa9bb9968c0110980c008c4a94
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301942 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bitcode/Writer/BitcodeWriter.cpp