diff options
| author | Eugene Leviant <eleviant@accesssoftek.com> | 2018-01-22 13:35:40 +0000 |
|---|---|---|
| committer | Eugene Leviant <eleviant@accesssoftek.com> | 2018-01-22 13:35:40 +0000 |
| commit | 28d8a49f4276467e41ceec525b1cb2648f0ae653 (patch) | |
| tree | 0aee42e3d302c4ac717d652111126bb1fe234a93 /llvm/lib/Transforms/IPO | |
| parent | 596fcb1b0f609ed285e27fffc273d6b4e6a56890 (diff) | |
| download | bcm5719-llvm-28d8a49f4276467e41ceec525b1cb2648f0ae653.tar.gz bcm5719-llvm-28d8a49f4276467e41ceec525b1cb2648f0ae653.zip | |
[ThinLTO] Re-commit of dot dumper after test fix
llvm-svn: 323116
Diffstat (limited to 'llvm/lib/Transforms/IPO')
| -rw-r--r-- | llvm/lib/Transforms/IPO/FunctionImport.cpp | 4 | ||||
| -rw-r--r-- | llvm/lib/Transforms/IPO/LowerTypeTests.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionImport.cpp b/llvm/lib/Transforms/IPO/FunctionImport.cpp index b6d6201cd23..b1eefb96454 100644 --- a/llvm/lib/Transforms/IPO/FunctionImport.cpp +++ b/llvm/lib/Transforms/IPO/FunctionImport.cpp @@ -231,7 +231,7 @@ updateValueInfoForIndirectCalls(const ModuleSummaryIndex &Index, ValueInfo VI) { // it, rather than needing to perform this mapping on each walk. auto GUID = Index.getGUIDFromOriginalID(VI.getGUID()); if (GUID == 0) - return nullptr; + return ValueInfo(); return Index.getValueInfo(GUID); } @@ -517,7 +517,7 @@ void llvm::computeDeadSymbols( for (auto &S : Entry.second.SummaryList) if (S->isLive()) { DEBUG(dbgs() << "Live root: " << Entry.first << "\n"); - Worklist.push_back(ValueInfo(&Entry)); + Worklist.push_back(ValueInfo(/*IsAnalysis=*/false, &Entry)); ++LiveSymbols; break; } diff --git a/llvm/lib/Transforms/IPO/LowerTypeTests.cpp b/llvm/lib/Transforms/IPO/LowerTypeTests.cpp index 20f54ef53f7..5dd9fd35e30 100644 --- a/llvm/lib/Transforms/IPO/LowerTypeTests.cpp +++ b/llvm/lib/Transforms/IPO/LowerTypeTests.cpp @@ -1529,7 +1529,7 @@ LowerTypeTestsModule::LowerTypeTestsModule( } bool LowerTypeTestsModule::runForTesting(Module &M) { - ModuleSummaryIndex Summary; + ModuleSummaryIndex Summary(/*IsPerformingAnalysis=*/false); // Handle the command-line summary arguments. This code is for testing // purposes only, so we handle errors directly. diff --git a/llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp b/llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp index 8c7eb48f2ff..aa1755bb097 100644 --- a/llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp +++ b/llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp @@ -584,7 +584,7 @@ PreservedAnalyses WholeProgramDevirtPass::run(Module &M, bool DevirtModule::runForTesting( Module &M, function_ref<AAResults &(Function &)> AARGetter, function_ref<OptimizationRemarkEmitter &(Function *)> OREGetter) { - ModuleSummaryIndex Summary; + ModuleSummaryIndex Summary(/*IsPerformingAnalysis=*/false); // Handle the command-line summary arguments. This code is for testing // purposes only, so we handle errors directly. |

