[Modules] Move ValueHandle into the IR library where Value itself lives.
[oota-llvm.git] / lib / Target / PowerPC / PPCJITInfo.cpp
index 9f4525b71e5565b219315f3f04b862a01e98b41e..5e3a48d8bbdb15cbc83ede21ea67cc9e4b203bd4 100644 (file)
@@ -71,7 +71,9 @@ static void EmitBranchToAt(uint64_t At, uint64_t To, bool isCall, bool is64Bit){
 extern "C" void PPC32CompilationCallback();
 extern "C" void PPC64CompilationCallback();
 
-#if !defined(__ppc__) || defined(__ppc64__)
+// The first clause of the preprocessor directive looks wrong, but it is
+// necessary when compiling this code on non-PowerPC hosts.
+#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 +204,7 @@ asm(
     );
 #endif
 
-#ifndef __ppc64__
+#if !defined(__powerpc64__) && !defined(__ppc64__)
 void PPC64CompilationCallback() {
   llvm_unreachable("This is not a 64bit PowerPC, you can't execute this!");
 }