summaryrefslogtreecommitdiff
path: root/compiler/driver/compiler_options_map-inl.h
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2018-10-16 23:11:09 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-10-16 23:11:09 +0000
commit4e4557a892f7dd0a3d73b9f731250a9d2b061c70 (patch)
tree2559c6eccec78877f1dbc828c38aaec6a01cb7b3 /compiler/driver/compiler_options_map-inl.h
parentf4fd65e393fe60f17e22ee7823f8dce4594c053d (diff)
parentcd0f38fcbda3e578ac27e483a1ffb7718f83fb7a (diff)
Merge "Add logic to eagerly resolve const-string for startup methods"
Diffstat (limited to 'compiler/driver/compiler_options_map-inl.h')
-rw-r--r--compiler/driver/compiler_options_map-inl.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/driver/compiler_options_map-inl.h b/compiler/driver/compiler_options_map-inl.h
index d4a582fb35..5a844959c4 100644
--- a/compiler/driver/compiler_options_map-inl.h
+++ b/compiler/driver/compiler_options_map-inl.h
@@ -80,6 +80,7 @@ inline bool ReadCompilerOptions(Base& map, CompilerOptions* options, std::string
if (map.Exists(Base::CountHotnessInCompiledCode)) {
options->count_hotness_in_compiled_code_ = true;
}
+ map.AssignIfExists(Base::ResolveStartupConstStrings, &options->resolve_startup_const_strings_);
if (map.Exists(Base::DumpTimings)) {
options->dump_timings_ = true;
@@ -184,6 +185,11 @@ inline void AddCompilerOptionsArgumentParserOptions(Builder& b) {
.template WithType<std::string>()
.IntoKey(Map::RegisterAllocationStrategy)
+ .Define("--resolve-startup-const-strings=_")
+ .template WithType<bool>()
+ .WithValueMap({{"false", false}, {"true", true}})
+ .IntoKey(Map::ResolveStartupConstStrings)
+
.Define("--verbose-methods=_")
.template WithType<ParseStringList<','>>()
.IntoKey(Map::VerboseMethods);