aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/BackendUtil.cpp
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2017-05-12 19:32:17 +0000
committerTeresa Johnson <tejohnson@google.com>2017-05-12 19:32:17 +0000
commit517729fb20494b6391a6d1e8b7cd374ef2c29f83 (patch)
tree1b12ec7202a0dd328a54ca4c819e698a740a78ab /clang/lib/CodeGen/BackendUtil.cpp
parent4cd12ce9a043c469f6c485075990f867855b4989 (diff)
downloadllvm-517729fb20494b6391a6d1e8b7cd374ef2c29f83.zip
llvm-517729fb20494b6391a6d1e8b7cd374ef2c29f83.tar.gz
llvm-517729fb20494b6391a6d1e8b7cd374ef2c29f83.tar.bz2
Remove ignore-empty-index-file option
Summary: Clang changes to remove this option and replace with a parameter always set in the context of a ThinLTO distributed backend. Depends on D33133. Reviewers: pcc Subscribers: mehdi_amini, eraman, cfe-commits Differential Revision: https://reviews.llvm.org/D33134 llvm-svn: 302940
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
-rw-r--r--clang/lib/CodeGen/BackendUtil.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp
index 51c21c9..0f07169 100644
--- a/clang/lib/CodeGen/BackendUtil.cpp
+++ b/clang/lib/CodeGen/BackendUtil.cpp
@@ -1073,7 +1073,8 @@ void clang::EmitBackendOutput(DiagnosticsEngine &Diags,
// into memory and pass it into runThinLTOBackend, which will run the
// function importer and invoke LTO passes.
Expected<std::unique_ptr<ModuleSummaryIndex>> IndexOrErr =
- llvm::getModuleSummaryIndexForFile(CGOpts.ThinLTOIndexFile);
+ llvm::getModuleSummaryIndexForFile(CGOpts.ThinLTOIndexFile,
+ /*IgnoreEmptyThinLTOIndexFile*/true);
if (!IndexOrErr) {
logAllUnhandledErrors(IndexOrErr.takeError(), errs(),
"Error loading index file '" +