summaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCJITInfo.cpp
diff options
context:
space:
mode:
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>2013-07-28 03:23:32 +0000
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>2013-07-28 03:23:32 +0000
commitf5b9110ce1e0d5bc6f96b1e74d110f0cc576324a (patch)
treec8612c8c639c4fef647775fc9c6f51bc8d15eaed /lib/Target/PowerPC/PPCJITInfo.cpp
parenteec21735b36ec7f79e6f925b192430bd39e8cd29 (diff)
downloadllvm-f5b9110ce1e0d5bc6f96b1e74d110f0cc576324a.tar.gz
llvm-f5b9110ce1e0d5bc6f96b1e74d110f0cc576324a.tar.bz2
llvm-f5b9110ce1e0d5bc6f96b1e74d110f0cc576324a.tar.xz
[PowerPC] Add comment explaining preprocessor directive.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187320 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCJITInfo.cpp')
-rw-r--r--lib/Target/PowerPC/PPCJITInfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCJITInfo.cpp b/lib/Target/PowerPC/PPCJITInfo.cpp
index 18f4adf839..5e3a48d8bb 100644
--- a/lib/Target/PowerPC/PPCJITInfo.cpp
+++ b/lib/Target/PowerPC/PPCJITInfo.cpp
@@ -71,6 +71,8 @@ static void EmitBranchToAt(uint64_t At, uint64_t To, bool isCall, bool is64Bit){
extern "C" void PPC32CompilationCallback();
extern "C" void PPC64CompilationCallback();
+// 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!");