summaryrefslogtreecommitdiffstats
path: root/runtime/noop_compiler_callbacks.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/noop_compiler_callbacks.h')
-rw-r--r--runtime/noop_compiler_callbacks.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/noop_compiler_callbacks.h b/runtime/noop_compiler_callbacks.h
index 65498deaab..e9ad3531b6 100644
--- a/runtime/noop_compiler_callbacks.h
+++ b/runtime/noop_compiler_callbacks.h
@@ -32,6 +32,11 @@ class NoopCompilerCallbacks FINAL : public CompilerCallbacks {
void ClassRejected(ClassReference ref) OVERRIDE {}
+ // This is only used by compilers which need to be able to run without relocation even when it
+ // would normally be enabled. For example the patchoat executable, and dex2oat --image, both need
+ // to disable the relocation since both deal with writing out the images directly.
+ bool IsRelocationPossible() OVERRIDE { return false; }
+
private:
DISALLOW_COPY_AND_ASSIGN(NoopCompilerCallbacks);
};