llvm.org GIT mirror llvm / 91c3ccb
Remove ignore-empty-index-file option Summary: As discussed in the D32195 review thread and on IRC, remove this option and replace with parameter, which will be set to true when invoked from clang in the context of a ThinLTO distributed backend. Reviewers: pcc Subscribers: mehdi_amini, llvm-commits Differential Revision: https://reviews.llvm.org/D33133 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302939 91177308-0d34-0410-b5e6-96231b3b80d8 Teresa Johnson 3 years ago
2 changed file(s) with 5 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
151151
152152 /// Parse the module summary index out of an IR file and return the module
153153 /// summary index object if found, or an empty summary if not. If Path refers
154 /// to an empty file and the -ignore-empty-index-file cl::opt flag is passed
154 /// to an empty file and IgnoreEmptyThinLTOIndexFile is true, then
155155 /// this function will return nullptr.
156156 Expected>
157 getModuleSummaryIndexForFile(StringRef Path);
157 getModuleSummaryIndexForFile(StringRef Path,
158 bool IgnoreEmptyThinLTOIndexFile = false);
158159
159160 /// isBitcodeWrapper - Return true if the given bytes are the magic bytes
160161 /// for an LLVM IR bitcode wrapper.
9191 "print-summary-global-ids", cl::init(false), cl::Hidden,
9292 cl::desc(
9393 "Print the global id for each value when reading the module summary"));
94
95 // FIXME: This flag should either be removed or moved to clang as a driver flag.
96 static llvm::cl::opt IgnoreEmptyThinLTOIndexFile(
97 "ignore-empty-index-file", llvm::cl::ZeroOrMore,
98 llvm::cl::desc(
99 "Ignore an empty index file and perform non-ThinLTO compilation"),
100 llvm::cl::init(false));
10194
10295 namespace {
10396
56625655 }
56635656
56645657 Expected>
5665 llvm::getModuleSummaryIndexForFile(StringRef Path) {
5658 llvm::getModuleSummaryIndexForFile(StringRef Path,
5659 bool IgnoreEmptyThinLTOIndexFile) {
56665660 ErrorOr> FileOrErr =
56675661 MemoryBuffer::getFileOrSTDIN(Path);
56685662 if (!FileOrErr)