diff options
| author | Brian Carlstrom <bdc@google.com> | 2014-03-04 23:19:06 -0800 |
|---|---|---|
| committer | Brian Carlstrom <bdc@google.com> | 2014-03-04 23:34:23 -0800 |
| commit | c0a1b18ac71ec0ff3ec0cca3cc8db9eb74e50690 (patch) | |
| tree | b587b9b0df1969ab4e9d49c0a57c83cbf2c35feb /oatdump | |
| parent | c84d2f1d3feb6271ea260947e2a1eb43d64a099b (diff) | |
| download | art-c0a1b18ac71ec0ff3ec0cca3cc8db9eb74e50690.tar.gz art-c0a1b18ac71ec0ff3ec0cca3cc8db9eb74e50690.tar.bz2 art-c0a1b18ac71ec0ff3ec0cca3cc8db9eb74e50690.zip | |
Reuse NoopCompilerCallbacks in oatdump
Change-Id: Icb4d3941196c1a236f0184fe4d0b7f5838bc13bd
Diffstat (limited to 'oatdump')
| -rw-r--r-- | oatdump/oatdump.cc | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/oatdump/oatdump.cc b/oatdump/oatdump.cc index 841a47849d..915c415c6a 100644 --- a/oatdump/oatdump.cc +++ b/oatdump/oatdump.cc @@ -26,7 +26,6 @@ #include "base/unix_file/fd_file.h" #include "class_linker.h" #include "class_linker-inl.h" -#include "compiler_callbacks.h" #include "dex_file-inl.h" #include "dex_instruction.h" #include "disassembler.h" @@ -43,6 +42,7 @@ #include "mirror/class-inl.h" #include "mirror/object-inl.h" #include "mirror/object_array-inl.h" +#include "noop_compiler_callbacks.h" #include "oat.h" #include "object_utils.h" #include "os.h" @@ -1528,13 +1528,8 @@ static int oatdump(int argc, char** argv) { std::string boot_oat_option; // We are more like a compiler than a run-time. We don't want to execute code. - // TODO: Replace with NoopCompilerCallbacks. - struct OatDumpCompilerCallbacks : CompilerCallbacks { - virtual bool MethodVerified(verifier::MethodVerifier* /*verifier*/) { return true; } - virtual void ClassRejected(ClassReference /*ref*/) { } - } callbacks; - options.push_back(std::make_pair("compilercallbacks", - static_cast<CompilerCallbacks*>(&callbacks))); + NoopCompilerCallbacks callbacks; + options.push_back(std::make_pair("compilercallbacks", &callbacks)); if (boot_image_filename != NULL) { boot_image_option += "-Ximage:"; |
