summaryrefslogtreecommitdiff
path: root/compiler/optimizing/optimizing_compiler.h
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2015-06-25 10:01:47 +0100
committerNicolas Geoffray <ngeoffray@google.com>2015-06-25 10:21:35 +0100
commit335005e2b3a179f26b7a8ae64ca60a1406b669bd (patch)
tree7295902b386a8431cbf6c47596858a63add0281e /compiler/optimizing/optimizing_compiler.h
parentfdc9af0ed76aa1a6efa05b122c9bcfdbb7e1e991 (diff)
Only do some checks when compiling against the core image.
This will avoid false negatives when running dex2oatd on apks. bug:21865473 Change-Id: Id8eacaefae0bcf07a2ada8aedd7951854cdb5c4f
Diffstat (limited to 'compiler/optimizing/optimizing_compiler.h')
-rw-r--r--compiler/optimizing/optimizing_compiler.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/optimizing/optimizing_compiler.h b/compiler/optimizing/optimizing_compiler.h
index d076fb55f2..0c89da12e8 100644
--- a/compiler/optimizing/optimizing_compiler.h
+++ b/compiler/optimizing/optimizing_compiler.h
@@ -24,6 +24,11 @@ class CompilerDriver;
Compiler* CreateOptimizingCompiler(CompilerDriver* driver);
+// Returns whether we are compiling against a "core" image, which
+// is an indicative we are running tests. The compiler will use that
+// information for checking invariants.
+bool IsCompilingWithCoreImage();
+
} // namespace art
#endif // ART_COMPILER_OPTIMIZING_OPTIMIZING_COMPILER_H_