summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorDavid Fang <fang@csl.cornell.edu>2013-07-24 07:52:16 +0000
committerDavid Fang <fang@csl.cornell.edu>2013-07-24 07:52:16 +0000
commit75ca7ce811db6d890577a7296f21de8a48937019 (patch)
treeda0e9c8bc4f8d34264d9608b52e1a4721c8f789f /llvm/lib/Target
parent690d8ea181af6f26f6aae79abc3c035795fa9ced (diff)
downloadbcm5719-llvm-75ca7ce811db6d890577a7296f21de8a48937019.tar.gz
bcm5719-llvm-75ca7ce811db6d890577a7296f21de8a48937019.zip
allow tests to run on powerpc-darwin8 again, checking for __ppc__
llvm-svn: 187027
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/PowerPC/PPCJITInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCJITInfo.cpp b/llvm/lib/Target/PowerPC/PPCJITInfo.cpp
index 17450616de8..18f4adf839e 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!");
}
OpenPOWER on IntegriCloud