diff options
author | Bill Schmidt <wschmidt@linux.vnet.ibm.com> | 2013-07-28 02:08:13 +0000 |
---|---|---|
committer | Bill Schmidt <wschmidt@linux.vnet.ibm.com> | 2013-07-28 02:08:13 +0000 |
commit | 8faa99081d9ad07234b95f86d02b4204bc561668 (patch) | |
tree | 221ceb5ecbb91a4b70802fdcabd7e5b1a8f4b79f /lib/Target/PowerPC | |
parent | 1aaaf3415466d4c59fbab3c4f4ce66bff442e65a (diff) | |
download | external_llvm-8faa99081d9ad07234b95f86d02b4204bc561668.zip external_llvm-8faa99081d9ad07234b95f86d02b4204bc561668.tar.gz external_llvm-8faa99081d9ad07234b95f86d02b4204bc561668.tar.bz2 |
[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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187318 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC')
-rw-r--r-- | lib/Target/PowerPC/PPCJITInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCJITInfo.cpp b/lib/Target/PowerPC/PPCJITInfo.cpp index 18f4adf..01ddcbe 100644 --- a/lib/Target/PowerPC/PPCJITInfo.cpp +++ b/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!"); } |