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 llvm-svn: 302939
This commit is contained in:
@@ -93,13 +93,6 @@ static cl::opt<bool> PrintSummaryGUIDs(
|
||||
cl::desc(
|
||||
"Print the global id for each value when reading the module summary"));
|
||||
|
||||
// FIXME: This flag should either be removed or moved to clang as a driver flag.
|
||||
static llvm::cl::opt<bool> IgnoreEmptyThinLTOIndexFile(
|
||||
"ignore-empty-index-file", llvm::cl::ZeroOrMore,
|
||||
llvm::cl::desc(
|
||||
"Ignore an empty index file and perform non-ThinLTO compilation"),
|
||||
llvm::cl::init(false));
|
||||
|
||||
namespace {
|
||||
|
||||
enum {
|
||||
@@ -5663,7 +5656,8 @@ Expected<bool> llvm::hasGlobalValueSummary(MemoryBufferRef Buffer) {
|
||||
}
|
||||
|
||||
Expected<std::unique_ptr<ModuleSummaryIndex>>
|
||||
llvm::getModuleSummaryIndexForFile(StringRef Path) {
|
||||
llvm::getModuleSummaryIndexForFile(StringRef Path,
|
||||
bool IgnoreEmptyThinLTOIndexFile) {
|
||||
ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr =
|
||||
MemoryBuffer::getFileOrSTDIN(Path);
|
||||
if (!FileOrErr)
|
||||
|
||||
Reference in New Issue
Block a user