diff options
author | David Fang <fang@csl.cornell.edu> | 2013-07-24 07:52:16 +0000 |
---|---|---|
committer | David Fang <fang@csl.cornell.edu> | 2013-07-24 07:52:16 +0000 |
commit | ef540b194f8ae1ff994ccdcb10dcc36f60e419c2 (patch) | |
tree | a88fcf523dbc8a51eaa0a70ae435aa8a1c9ac302 /lib/Target/PowerPC | |
parent | f63ef914b67593e4b20a0b85e889380c20b41f55 (diff) | |
download | external_llvm-ef540b194f8ae1ff994ccdcb10dcc36f60e419c2.zip external_llvm-ef540b194f8ae1ff994ccdcb10dcc36f60e419c2.tar.gz external_llvm-ef540b194f8ae1ff994ccdcb10dcc36f60e419c2.tar.bz2 |
allow tests to run on powerpc-darwin8 again, checking for __ppc__
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187027 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC')
-rw-r--r-- | lib/Target/PowerPC/PPCJITInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/PowerPC/PPCJITInfo.cpp b/lib/Target/PowerPC/PPCJITInfo.cpp index 1745061..18f4adf 100644 --- a/lib/Target/PowerPC/PPCJITInfo.cpp +++ b/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!"); } |