diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2014-06-13 10:29:43 +0100 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2014-06-13 10:29:43 +0100 |
commit | 49c105d624e4bf8e56b85caaecfeb80864bd3f59 (patch) | |
tree | a1fbfb6af61a3c5c4d605556ed67964c367a5a92 /compiler/optimizing/codegen_test.cc | |
parent | 9613592aebace270e5d147c55e8d3c642fbb7541 (diff) |
Guard `Run` for platforms we're not compiling to, yet.
Change-Id: I0dc210d2734e95714bed6c481a31fa4daabb9332
Diffstat (limited to 'compiler/optimizing/codegen_test.cc')
-rw-r--r-- | compiler/optimizing/codegen_test.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/optimizing/codegen_test.cc b/compiler/optimizing/codegen_test.cc index 3b91ca15f4..c3baf1a7b7 100644 --- a/compiler/optimizing/codegen_test.cc +++ b/compiler/optimizing/codegen_test.cc @@ -47,6 +47,7 @@ class InternalCodeAllocator : public CodeAllocator { DISALLOW_COPY_AND_ASSIGN(InternalCodeAllocator); }; +#if defined(__i386__) || defined(__arm__) || defined(__x86_64__) static void Run(const InternalCodeAllocator& allocator, bool has_result, int32_t expected) { typedef int32_t (*fptr)(); CommonCompilerTest::MakeExecutable(allocator.GetMemory(), allocator.GetSize()); @@ -55,6 +56,7 @@ static void Run(const InternalCodeAllocator& allocator, bool has_result, int32_t CHECK_EQ(result, expected); } } +#endif static void TestCode(const uint16_t* data, bool has_result = false, int32_t expected = 0) { ArenaPool pool; |