[llvm] 3b83501 - [FileCheck][NFC] Remove redundant DumpInputDefault
Joel E. Denny via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 25 09:36:01 PDT 2020
Author: Joel E. Denny
Date: 2020-06-25T12:35:03-04:00
New Revision: 3b83501c29588ab65e7118fe404adf383789dedd
URL: https://github.com/llvm/llvm-project/commit/3b83501c29588ab65e7118fe404adf383789dedd
DIFF: https://github.com/llvm/llvm-project/commit/3b83501c29588ab65e7118fe404adf383789dedd.diff
LOG: [FileCheck][NFC] Remove redundant DumpInputDefault
Reviewed By: mehdi_amini, jhenderson
Differential Revision: https://reviews.llvm.org/D82480
Added:
Modified:
llvm/utils/FileCheck/FileCheck.cpp
Removed:
################################################################################
diff --git a/llvm/utils/FileCheck/FileCheck.cpp b/llvm/utils/FileCheck/FileCheck.cpp
index 8e41365de81a..52d0fb8681f7 100644
--- a/llvm/utils/FileCheck/FileCheck.cpp
+++ b/llvm/utils/FileCheck/FileCheck.cpp
@@ -110,7 +110,6 @@ static cl::opt<bool> VerboseVerbose(
// The order of DumpInputValue members affects their precedence, as documented
// for -dump-input below.
enum DumpInputValue {
- DumpInputDefault,
DumpInputNever,
DumpInputFail,
DumpInputAlways,
@@ -551,7 +550,7 @@ int main(int argc, char **argv) {
"FILECHECK_OPTS");
DumpInputValue DumpInput =
DumpInputs.empty()
- ? DumpInputDefault
+ ? DumpInputFail
: *std::max_element(DumpInputs.begin(), DumpInputs.end());
if (DumpInput == DumpInputHelp) {
DumpInputAnnotationHelp(outs());
@@ -668,9 +667,6 @@ int main(int argc, char **argv) {
InputFileText, InputFile.getBufferIdentifier()),
SMLoc());
- if (DumpInput == DumpInputDefault)
- DumpInput = DumpInputFail;
-
std::vector<FileCheckDiag> Diags;
int ExitCode = FC.checkInput(SM, InputFileText,
DumpInput == DumpInputNever ? nullptr : &Diags)
More information about the llvm-commits
mailing list