From 335005e2b3a179f26b7a8ae64ca60a1406b669bd Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Thu, 25 Jun 2015 10:01:47 +0100 Subject: 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 --- compiler/optimizing/optimizing_compiler.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'compiler/optimizing/optimizing_compiler.h') 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_ -- cgit v1.2.3-59-g8ed1b