]> granicus.if.org Git - llvm/commit
IR: Tweak the API around adding modules to the summary index.
authorPeter Collingbourne <peter@pcc.me.uk>
Wed, 14 Jun 2017 22:35:27 +0000 (22:35 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Wed, 14 Jun 2017 22:35:27 +0000 (22:35 +0000)
commitff3e8e2cee5c07211319b17d4710aada20ff5251
treefb29f6024803313298bfe3888d7c17d1163bf25d
parent458f91302fed48bb8112a033b56dff8ef8eb1a9a
IR: Tweak the API around adding modules to the summary index.

The current name (addModulePath) and return value
(ModulePathStringTableTy::iterator) is a little confusing. This
API adds a module, not just a path. And the iterator is basically
just an implementation detail of the summary index. Address
both of those issues by renaming to addModule and introducing a
ModuleSummaryIndex::ModuleInfo type that the function returns.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305422 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/ModuleSummaryIndex.h
lib/Bitcode/Reader/BitcodeReader.cpp