summaryrefslogtreecommitdiff
path: root/runtime/parsed_options.h
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2015-12-04 14:19:04 +0000
committer Vladimir Marko <vmarko@google.com> 2015-12-07 12:38:21 +0000
commit88b2b80aed15bb1f931cddd40e44ca525ef10018 (patch)
tree04b2f9d27863cd469dae8050335f197496f24ff2 /runtime/parsed_options.h
parentcf6bd55863ded11e0533966657871aca444505a5 (diff)
Allow initializing runtime with parsed options.
Needed by upcoming refactoring of dex2oat to allow early writing of dex files to the oat file. Change-Id: Ia13c26132846801522f181f51f64035d625e8416
Diffstat (limited to 'runtime/parsed_options.h')
-rw-r--r--runtime/parsed_options.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/runtime/parsed_options.h b/runtime/parsed_options.h
index 529dd5ce1c..5974fb6a6e 100644
--- a/runtime/parsed_options.h
+++ b/runtime/parsed_options.h
@@ -50,8 +50,9 @@ class ParsedOptions {
static std::unique_ptr<RuntimeParser> MakeParser(bool ignore_unrecognized);
// returns true if parsing succeeds, and stores the resulting options into runtime_options
- static ParsedOptions* Create(const RuntimeOptions& options, bool ignore_unrecognized,
- RuntimeArgumentMap* runtime_options);
+ static bool Parse(const RuntimeOptions& options,
+ bool ignore_unrecognized,
+ RuntimeArgumentMap* runtime_options);
bool (*hook_is_sensitive_thread_)();
jint (*hook_vfprintf_)(FILE* stream, const char* format, va_list ap);
@@ -72,8 +73,9 @@ class ParsedOptions {
void Exit(int status);
void Abort();
- bool Parse(const RuntimeOptions& options, bool ignore_unrecognized,
- RuntimeArgumentMap* runtime_options);
+ bool DoParse(const RuntimeOptions& options,
+ bool ignore_unrecognized,
+ RuntimeArgumentMap* runtime_options);
};
} // namespace art