summaryrefslogtreecommitdiff
path: root/compiler/driver/compiler_options.h
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2015-03-06 02:53:41 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2015-03-06 02:53:41 +0000
commit8d2ceab800890b562c9a03a7f5920fb9bfb37858 (patch)
tree687d4e7768cbced0d96dd876a3855667d9ad43e4 /compiler/driver/compiler_options.h
parent09c2de7f87b393164d3f2087d635262c12f19be3 (diff)
parent6cf49e57ad7a61e1fffd5b1dfae9179c3ca5703d (diff)
Merge "ART: Add option to abort dex2oat on hard failure"
Diffstat (limited to 'compiler/driver/compiler_options.h')
-rw-r--r--compiler/driver/compiler_options.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/compiler/driver/compiler_options.h b/compiler/driver/compiler_options.h
index fecc600d64..5042c7594c 100644
--- a/compiler/driver/compiler_options.h
+++ b/compiler/driver/compiler_options.h
@@ -70,7 +70,8 @@ class CompilerOptions FINAL {
bool compile_pic,
const std::vector<std::string>* verbose_methods,
PassManagerOptions* pass_manager_options,
- std::ostream* init_failure_output);
+ std::ostream* init_failure_output,
+ bool abort_on_hard_verifier_failure);
CompilerFilter GetCompilerFilter() const {
return compiler_filter_;
@@ -183,6 +184,10 @@ class CompilerOptions FINAL {
return pass_manager_options_.get();
}
+ bool AbortOnHardVerifierFailure() const {
+ return abort_on_hard_verifier_failure_;
+ }
+
private:
CompilerFilter compiler_filter_;
const size_t huge_method_threshold_;
@@ -206,6 +211,10 @@ class CompilerOptions FINAL {
std::unique_ptr<PassManagerOptions> pass_manager_options_;
+ // Abort compilation with an error if we find a class that fails verification with a hard
+ // failure.
+ const bool abort_on_hard_verifier_failure_;
+
// Log initialization of initialization failures to this stream if not null.
std::ostream* const init_failure_output_;