[llvm] r187318 - [PowerPC] Remove unnecessary preprocessor checking.
Bill Schmidt
wschmidt at linux.vnet.ibm.com
Sat Jul 27 19:08:13 PDT 2013
Author: wschmidt
Date: Sat Jul 27 21:08:13 2013
New Revision: 187318
URL: http://llvm.org/viewvc/llvm-project?rev=187318&view=rev
Log:
[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.
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=187318&r1=187317&r2=187318&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCJITInfo.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCJITInfo.cpp Sat Jul 27 21:08:13 2013
@@ -71,7 +71,7 @@ static void EmitBranchToAt(uint64_t At,
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!");
}
More information about the llvm-commits
mailing list