mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-11 10:25:41 +00:00
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
This commit is contained in:
@@ -71,7 +71,7 @@ static void EmitBranchToAt(uint64_t At, uint64_t To, bool isCall, bool is64Bit){
|
|||||||
extern "C" void PPC32CompilationCallback();
|
extern "C" void PPC32CompilationCallback();
|
||||||
extern "C" void PPC64CompilationCallback();
|
extern "C" void PPC64CompilationCallback();
|
||||||
|
|
||||||
#if !defined(__powerpc__) || defined(__powerpc64__)
|
#if (!defined(__ppc__) && !defined(__powerpc__)) || defined(__powerpc64__) || defined(__ppc64__)
|
||||||
void PPC32CompilationCallback() {
|
void PPC32CompilationCallback() {
|
||||||
llvm_unreachable("This is not a 32bit PowerPC, you can't execute this!");
|
llvm_unreachable("This is not a 32bit PowerPC, you can't execute this!");
|
||||||
}
|
}
|
||||||
@@ -202,7 +202,7 @@ asm(
|
|||||||
);
|
);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __powerpc64__
|
#if !defined(__powerpc64__) && !defined(__ppc64__)
|
||||||
void PPC64CompilationCallback() {
|
void PPC64CompilationCallback() {
|
||||||
llvm_unreachable("This is not a 64bit PowerPC, you can't execute this!");
|
llvm_unreachable("This is not a 64bit PowerPC, you can't execute this!");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user