From 75ca7ce811db6d890577a7296f21de8a48937019 Mon Sep 17 00:00:00 2001 From: David Fang Date: Wed, 24 Jul 2013 07:52:16 +0000 Subject: [PATCH] allow tests to run on powerpc-darwin8 again, checking for __ppc__ llvm-svn: 187027 --- llvm/lib/Target/PowerPC/PPCJITInfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Target/PowerPC/PPCJITInfo.cpp b/llvm/lib/Target/PowerPC/PPCJITInfo.cpp index 1745061..18f4adf 100644 --- a/llvm/lib/Target/PowerPC/PPCJITInfo.cpp +++ b/llvm/lib/Target/PowerPC/PPCJITInfo.cpp @@ -71,7 +71,7 @@ static void EmitBranchToAt(uint64_t At, uint64_t To, bool isCall, bool is64Bit){ extern "C" void PPC32CompilationCallback(); extern "C" void PPC64CompilationCallback(); -#if !defined(__powerpc__) || defined(__powerpc64__) +#if (!defined(__ppc__) && !defined(__powerpc__)) || defined(__powerpc64__) || defined(__ppc64__) void PPC32CompilationCallback() { llvm_unreachable("This is not a 32bit PowerPC, you can't execute this!"); } @@ -202,7 +202,7 @@ asm( ); #endif -#ifndef __powerpc64__ +#if !defined(__powerpc64__) && !defined(__ppc64__) void PPC64CompilationCallback() { llvm_unreachable("This is not a 64bit PowerPC, you can't execute this!"); } -- 2.7.4