diff options
Diffstat (limited to 'runtime/compiler_callbacks.h')
-rw-r--r-- | runtime/compiler_callbacks.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/runtime/compiler_callbacks.h b/runtime/compiler_callbacks.h index d1a68615b1..3fabe3ed44 100644 --- a/runtime/compiler_callbacks.h +++ b/runtime/compiler_callbacks.h @@ -40,8 +40,16 @@ class CompilerCallbacks { // done so. Return false if relocating in this way would be problematic. virtual bool IsRelocationPossible() = 0; + bool IsBootImage() { + return boot_image_; + } + protected: - CompilerCallbacks() { } + explicit CompilerCallbacks(bool boot_image) : boot_image_(boot_image) { } + + private: + // Whether the compiler is creating a boot image. + const bool boot_image_; }; } // namespace art |