summaryrefslogtreecommitdiff
path: root/runtime/compiler_callbacks.h
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2015-03-28 04:44:36 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2015-03-28 04:44:37 +0000
commit86787d0bc2c5ad3b9c3b880b0fe2325d2b8bd672 (patch)
tree6de43fc1c1336d18a72f5c205e142e1c6ca1ef5e /runtime/compiler_callbacks.h
parent5c7acfc0b5acc50c60c57934341750f7c776d57e (diff)
parent81c6f8db12b203878a7d72444ead2bc7cf5c47ad (diff)
Merge "ART: PathClassLoader for compiler"
Diffstat (limited to 'runtime/compiler_callbacks.h')
-rw-r--r--runtime/compiler_callbacks.h10
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