[PATCH] D21368: [llc] Remove exit-on-error flag (PR27759)
Diana Picus via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 23 02:56:53 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL273554: [llc] Remove exit-on-error flag (PR27759) (authored by rovka).
Changed prior to commit:
http://reviews.llvm.org/D21368?vs=60806&id=61658#toc
Repository:
rL LLVM
http://reviews.llvm.org/D21368
Files:
llvm/trunk/tools/llc/llc.cpp
Index: llvm/trunk/tools/llc/llc.cpp
===================================================================
--- llvm/trunk/tools/llc/llc.cpp
+++ llvm/trunk/tools/llc/llc.cpp
@@ -113,11 +113,6 @@
cl::desc("Discard names from Value (other than GlobalValue)."),
cl::init(false), cl::Hidden);
-static cl::opt<bool> ExitOnError(
- "exit-on-error",
- cl::desc("Exit as soon as an error is encountered."),
- cl::init(false), cl::Hidden);
-
namespace {
static ManagedStatic<std::vector<std::string>> RunPassNames;
@@ -257,8 +252,7 @@
// Set a diagnostic handler that doesn't exit on the first error
bool HasError = false;
- if (!ExitOnError)
- Context.setDiagnosticHandler(DiagnosticHandler, &HasError);
+ Context.setDiagnosticHandler(DiagnosticHandler, &HasError);
// Compile the module TimeCompilations times to give better compile time
// metrics.
@@ -486,11 +480,9 @@
PM.run(*M);
- if (!ExitOnError) {
- auto HasError = *static_cast<bool *>(Context.getDiagnosticContext());
- if (HasError)
- return 1;
- }
+ auto HasError = *static_cast<bool *>(Context.getDiagnosticContext());
+ if (HasError)
+ return 1;
// Compare the two outputs and make sure they're the same
if (CompileTwice) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21368.61658.patch
Type: text/x-patch
Size: 1277 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160623/caee551c/attachment.bin>
More information about the llvm-commits
mailing list