From 68708f536d11f8824d881b640f3902093075c0a6 Mon Sep 17 00:00:00 2001 From: Brian Carlstrom Date: Tue, 3 Sep 2013 14:15:31 -0700 Subject: Fix image_test on target Bug: 10606994 Change-Id: I39838483e59479ceb9ba014bef9086b32f2596a8 --- runtime/image.h | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'runtime/image.h') diff --git a/runtime/image.h b/runtime/image.h index 0e0a90a..2cb468f 100644 --- a/runtime/image.h +++ b/runtime/image.h @@ -41,20 +41,8 @@ class PACKED(4) ImageHeader { uint32_t oat_data_end, uint32_t oat_file_end); - bool IsValid() const { - if (memcmp(magic_, kImageMagic, sizeof(kImageMagic)) != 0) { - return false; - } - if (memcmp(version_, kImageVersion, sizeof(kImageVersion)) != 0) { - return false; - } - return true; - } - - const char* GetMagic() const { - CHECK(IsValid()); - return reinterpret_cast(magic_); - } + bool IsValid() const; + const char* GetMagic() const; byte* GetImageBegin() const { return reinterpret_cast(image_begin_); -- cgit v1.1