diff options
author | Andreas Gampe <agampe@google.com> | 2015-03-05 13:08:45 -0800 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2015-03-05 18:42:21 -0800 |
commit | 6cf49e57ad7a61e1fffd5b1dfae9179c3ca5703d (patch) | |
tree | 126d4a09078ebfb6b5eed5d67d6300217132a1bb /compiler/driver/compiler_options.cc | |
parent | 66b26662ad0c52c648c9b5ea4a99149091e842b4 (diff) |
ART: Add option to abort dex2oat on hard failure
Add an option that aborts dex2oat when a hard verifier failure occurs.
Bug: 19606409
Change-Id: I53195284e22fe6207274101e85745af763c06271
Diffstat (limited to 'compiler/driver/compiler_options.cc')
-rw-r--r-- | compiler/driver/compiler_options.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/driver/compiler_options.cc b/compiler/driver/compiler_options.cc index 067e1bd7d6..e436f52db3 100644 --- a/compiler/driver/compiler_options.cc +++ b/compiler/driver/compiler_options.cc @@ -38,6 +38,7 @@ CompilerOptions::CompilerOptions() compile_pic_(false), verbose_methods_(nullptr), pass_manager_options_(new PassManagerOptions), + abort_on_hard_verifier_failure_(false), init_failure_output_(nullptr) { } @@ -58,7 +59,8 @@ CompilerOptions::CompilerOptions(CompilerFilter compiler_filter, 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 ) : // NOLINT(whitespace/parens) compiler_filter_(compiler_filter), huge_method_threshold_(huge_method_threshold), @@ -77,6 +79,7 @@ CompilerOptions::CompilerOptions(CompilerFilter compiler_filter, compile_pic_(compile_pic), verbose_methods_(verbose_methods), pass_manager_options_(pass_manager_options), + abort_on_hard_verifier_failure_(abort_on_hard_verifier_failure), init_failure_output_(init_failure_output) { } |