summaryrefslogtreecommitdiff
path: root/compiler/driver/compiler_options.cc
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2016-01-28 00:17:21 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2016-01-28 00:17:21 +0000
commit78e90155b249588cb800e7f6e5993ebcbd465292 (patch)
tree468ea16de8948f6c53fb99488cb17809932575fa /compiler/driver/compiler_options.cc
parenta3abcb5250ccb89695049a69d3fb0bd0300ae190 (diff)
parentace0dc1dd5480ad458e622085e51583653853fb9 (diff)
Merge "ART: Add option to ensure deterministic compilation"
Diffstat (limited to 'compiler/driver/compiler_options.cc')
-rw-r--r--compiler/driver/compiler_options.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/compiler/driver/compiler_options.cc b/compiler/driver/compiler_options.cc
index 9285b8c927..3bf89214d7 100644
--- a/compiler/driver/compiler_options.cc
+++ b/compiler/driver/compiler_options.cc
@@ -47,7 +47,8 @@ CompilerOptions::CompilerOptions()
abort_on_hard_verifier_failure_(false),
init_failure_output_(nullptr),
dump_cfg_file_name_(""),
- dump_cfg_append_(false) {
+ dump_cfg_append_(false),
+ force_determinism_(false) {
}
CompilerOptions::~CompilerOptions() {
@@ -76,7 +77,8 @@ CompilerOptions::CompilerOptions(CompilerFilter compiler_filter,
std::ostream* init_failure_output,
bool abort_on_hard_verifier_failure,
const std::string& dump_cfg_file_name,
- bool dump_cfg_append
+ bool dump_cfg_append,
+ bool force_determinism
) : // NOLINT(whitespace/parens)
compiler_filter_(compiler_filter),
huge_method_threshold_(huge_method_threshold),
@@ -102,7 +104,8 @@ CompilerOptions::CompilerOptions(CompilerFilter compiler_filter,
abort_on_hard_verifier_failure_(abort_on_hard_verifier_failure),
init_failure_output_(init_failure_output),
dump_cfg_file_name_(dump_cfg_file_name),
- dump_cfg_append_(dump_cfg_append) {
+ dump_cfg_append_(dump_cfg_append),
+ force_determinism_(force_determinism) {
}
void CompilerOptions::ParseHugeMethodMax(const StringPiece& option, UsageFn Usage) {