From 49c105d624e4bf8e56b85caaecfeb80864bd3f59 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Fri, 13 Jun 2014 10:29:43 +0100 Subject: Guard `Run` for platforms we're not compiling to, yet. Change-Id: I0dc210d2734e95714bed6c481a31fa4daabb9332 --- compiler/optimizing/codegen_test.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'compiler/optimizing/codegen_test.cc') 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; -- cgit v1.2.3