diff options
author | Brian Carlstrom <bdc@google.com> | 2013-09-03 14:15:31 -0700 |
---|---|---|
committer | Brian Carlstrom <bdc@google.com> | 2013-09-03 14:15:31 -0700 |
commit | 68708f536d11f8824d881b640f3902093075c0a6 (patch) | |
tree | d1409b81bf3274b596e404dcd6b74b180f4ca41a /runtime/image.h | |
parent | 179486aee731f734207873244542993ed4bcff21 (diff) | |
download | art-68708f536d11f8824d881b640f3902093075c0a6.zip art-68708f536d11f8824d881b640f3902093075c0a6.tar.gz art-68708f536d11f8824d881b640f3902093075c0a6.tar.bz2 |
Fix image_test on target
Bug: 10606994
Change-Id: I39838483e59479ceb9ba014bef9086b32f2596a8
Diffstat (limited to 'runtime/image.h')
-rw-r--r-- | runtime/image.h | 16 |
1 files changed, 2 insertions, 14 deletions
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<const char*>(magic_); - } + bool IsValid() const; + const char* GetMagic() const; byte* GetImageBegin() const { return reinterpret_cast<byte*>(image_begin_); |