From ba124f9e42e544e77adf82ead1f0407dbd07c7d1 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Fri, 28 Apr 2017 17:41:43 +0000 Subject: 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 --- llvm/lib/IR/ModuleSummaryIndex.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'llvm/lib/IR/ModuleSummaryIndex.cpp') 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 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( -- cgit v1.1