[llvm] r187027 - allow tests to run on powerpc-darwin8 again, checking for __ppc__
David Fang
fang at csl.cornell.edu
Wed Jul 24 00:52:17 PDT 2013
Author: fangism
Date: Wed Jul 24 02:52:16 2013
New Revision: 187027
URL: http://llvm.org/viewvc/llvm-project?rev=187027&view=rev
Log:
allow tests to run on powerpc-darwin8 again, checking for __ppc__
Modified:
llvm/trunk/lib/Target/PowerPC/PPCJITInfo.cpp
Modified: llvm/trunk/lib/Target/PowerPC/PPCJITInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCJITInfo.cpp?rev=187027&r1=187026&r2=187027&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCJITInfo.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCJITInfo.cpp Wed Jul 24 02:52:16 2013
@@ -71,7 +71,7 @@ static void EmitBranchToAt(uint64_t At,
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!");
}
More information about the llvm-commits
mailing list