aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/ModuleSummaryIndex.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2017-04-28 17:41:43 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2017-04-28 17:41:43 +0000
commitba124f9e42e544e77adf82ead1f0407dbd07c7d1 (patch)
treed4218534595ab24e2a59da89f816dc24b103bdc7 /llvm/lib/IR/ModuleSummaryIndex.cpp
parentb882e5910dc3cd86c751d47d8160626a36e7cac6 (diff)
downloadllvm-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.cpp12
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(