[PATCH] D82480: [FileCheck][NFC] Remove redundant DumpInputDefault
Joel E. Denny via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 25 09:41:46 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG3b83501c2958: [FileCheck][NFC] Remove redundant DumpInputDefault (authored by jdenny).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82480/new/
https://reviews.llvm.org/D82480
Files:
llvm/utils/FileCheck/FileCheck.cpp
Index: llvm/utils/FileCheck/FileCheck.cpp
===================================================================
--- llvm/utils/FileCheck/FileCheck.cpp
+++ llvm/utils/FileCheck/FileCheck.cpp
@@ -110,7 +110,6 @@
// The order of DumpInputValue members affects their precedence, as documented
// for -dump-input below.
enum DumpInputValue {
- DumpInputDefault,
DumpInputNever,
DumpInputFail,
DumpInputAlways,
@@ -551,7 +550,7 @@
"FILECHECK_OPTS");
DumpInputValue DumpInput =
DumpInputs.empty()
- ? DumpInputDefault
+ ? DumpInputFail
: *std::max_element(DumpInputs.begin(), DumpInputs.end());
if (DumpInput == DumpInputHelp) {
DumpInputAnnotationHelp(outs());
@@ -668,9 +667,6 @@
InputFileText, InputFile.getBufferIdentifier()),
SMLoc());
- if (DumpInput == DumpInputDefault)
- DumpInput = DumpInputFail;
-
std::vector<FileCheckDiag> Diags;
int ExitCode = FC.checkInput(SM, InputFileText,
DumpInput == DumpInputNever ? nullptr : &Diags)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82480.273415.patch
Type: text/x-patch
Size: 1119 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200625/632b1a1f/attachment.bin>
More information about the llvm-commits
mailing list