diff options
author | 2015-03-28 04:44:36 +0000 | |
---|---|---|
committer | 2015-03-28 04:44:37 +0000 | |
commit | 86787d0bc2c5ad3b9c3b880b0fe2325d2b8bd672 (patch) | |
tree | 6de43fc1c1336d18a72f5c205e142e1c6ca1ef5e /runtime/compiler_callbacks.h | |
parent | 5c7acfc0b5acc50c60c57934341750f7c776d57e (diff) | |
parent | 81c6f8db12b203878a7d72444ead2bc7cf5c47ad (diff) |
Merge "ART: PathClassLoader for compiler"
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 |