diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2017-04-28 17:41:43 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2017-04-28 17:41:43 +0000 |
commit | ba124f9e42e544e77adf82ead1f0407dbd07c7d1 (patch) | |
tree | d4218534595ab24e2a59da89f816dc24b103bdc7 /llvm/lib/IR/ModuleSummaryIndex.cpp | |
parent | b882e5910dc3cd86c751d47d8160626a36e7cac6 (diff) | |
download | llvm-ba124f9e42e544e77adf82ead1f0407dbd07c7d1.zip llvm-ba124f9e42e544e77adf82ead1f0407dbd07c7d1.tar.gz llvm-ba124f9e42e544e77adf82ead1f0407dbd07c7d1.tar.bz2 |
Bitcode: Do not remove empty summary entries when reading a per-module summary.
This became no longer necessary after D19462 landed, and will be incompatible
with an upcoming change to the summary data structures that changes how we
represent references.
llvm-svn: 301660
Diffstat (limited to 'llvm/lib/IR/ModuleSummaryIndex.cpp')
-rw-r--r-- | llvm/lib/IR/ModuleSummaryIndex.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/llvm/lib/IR/ModuleSummaryIndex.cpp b/llvm/lib/IR/ModuleSummaryIndex.cpp index 9072f4b..8d1d679 100644 --- a/llvm/lib/IR/ModuleSummaryIndex.cpp +++ b/llvm/lib/IR/ModuleSummaryIndex.cpp @@ -52,18 +52,6 @@ void ModuleSummaryIndex::mergeFrom(std::unique_ptr<ModuleSummaryIndex> Other, } } -void ModuleSummaryIndex::removeEmptySummaryEntries() { - for (auto MI = begin(), MIE = end(); MI != MIE;) { - // Only expect this to be called on a per-module index, which has a single - // entry per value entry list. - assert(MI->second.size() == 1); - if (!MI->second[0]) - MI = GlobalValueMap.erase(MI); - else - ++MI; - } -} - // Collect for the given module the list of function it defines // (GUID -> Summary). void ModuleSummaryIndex::collectDefinedFunctionsForModule( |