summaryrefslogtreecommitdiffstats
path: root/compiler/dex/compiler_ir.cc
diff options
context:
space:
mode:
authorRazvan A Lupusoru <razvan.a.lupusoru@intel.com>2014-07-02 18:16:51 -0700
committerIan Rogers <irogers@google.com>2014-08-26 17:24:59 -0700
commitbd25d4bff69e4775b7844d48630618b5ad8d3343 (patch)
treeb6837d257d9f292845c5a1d51a94e3be2f62e332 /compiler/dex/compiler_ir.cc
parenta9ffc181c61f5634753bf1039ed50bf22c800fde (diff)
downloadart-bd25d4bff69e4775b7844d48630618b5ad8d3343.tar.gz
art-bd25d4bff69e4775b7844d48630618b5ad8d3343.tar.bz2
art-bd25d4bff69e4775b7844d48630618b5ad8d3343.zip
ART: Add capability for a pass to have options
This patch adds capability to have pass options. These are needed when a pass has multiple flags that can be tweaked. The user is now allowed to pass those options via command line. Since passes are treated as singletons and they are immutable, the overridden options provided by user are set on the compilation unit. Doing this way also allows a selectivity system to tweak the option per compilation instead of doing it globally (due to the single pass existing). The following command line flags have been added: --print-pass-options - This prints all passes that have options along with their defaults. --pass-options= - This is used to pass the overridden options in format of PassName:PassOption:PassOptionSetting Change-Id: Ib5156f5d2ff51a0c64c4ea0fa050bd2170663417 Signed-off-by: Razvan A Lupusoru <razvan.a.lupusoru@intel.com> Signed-off-by: Jean Christophe Beyler <jean.christophe.beyler@intel.com>
Diffstat (limited to 'compiler/dex/compiler_ir.cc')
-rw-r--r--compiler/dex/compiler_ir.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/dex/compiler_ir.cc b/compiler/dex/compiler_ir.cc
index 7a5b114c8d..e1d489a051 100644
--- a/compiler/dex/compiler_ir.cc
+++ b/compiler/dex/compiler_ir.cc
@@ -54,6 +54,7 @@ CompilationUnit::CompilationUnit(ArenaPool* pool)
}
CompilationUnit::~CompilationUnit() {
+ overridden_pass_options.clear();
}
void CompilationUnit::StartTimingSplit(const char* label) {