summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>2013-07-28 02:08:13 +0000
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>2013-07-28 02:08:13 +0000
commitf5b32e393574bdd5e873ee6280b5b36a7cca5482 (patch)
tree3b7b539255e874c7577dd293767690bf2afe8181 /llvm/lib
parentfbfd102b9eb32d5f8e545c37be64f1c40307fff1 (diff)
downloadbcm5719-llvm-f5b32e393574bdd5e873ee6280b5b36a7cca5482.tar.gz
bcm5719-llvm-f5b32e393574bdd5e873ee6280b5b36a7cca5482.zip
[PowerPC] Remove unnecessary preprocessor checking.
The tests !defined(__ppc__) && !defined(__powerpc__) are not needed or helpful when verifying that code is being compiled for a 64-bit target. The simpler test provided by this revision is sufficient to tell if the target is 64-bit. llvm-svn: 187318
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/PowerPC/PPCJITInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCJITInfo.cpp b/llvm/lib/Target/PowerPC/PPCJITInfo.cpp
index 18f4adf839e..01ddcbe5f4a 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(__ppc__) && !defined(__powerpc__)) || defined(__powerpc64__) || defined(__ppc64__)
+#if defined(__powerpc64__) || defined(__ppc64__)
void PPC32CompilationCallback() {
llvm_unreachable("This is not a 32bit PowerPC, you can't execute this!");
}
OpenPOWER on IntegriCloud