diff options
author | Bill Schmidt <wschmidt@linux.vnet.ibm.com> | 2013-07-28 03:23:32 +0000 |
---|---|---|
committer | Bill Schmidt <wschmidt@linux.vnet.ibm.com> | 2013-07-28 03:23:32 +0000 |
commit | 40f78a2a86236f35ce1cc7d5f047fffc67d7fb7e (patch) | |
tree | fb1c8dbee8ce838ac557320ab17f339659ff85ed | |
parent | 20573225ed217c9cb930a0e029d5929fc1e1c179 (diff) | |
download | bcm5719-llvm-40f78a2a86236f35ce1cc7d5f047fffc67d7fb7e.tar.gz bcm5719-llvm-40f78a2a86236f35ce1cc7d5f047fffc67d7fb7e.zip |
[PowerPC] Add comment explaining preprocessor directive.
llvm-svn: 187320
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCJITInfo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCJITInfo.cpp b/llvm/lib/Target/PowerPC/PPCJITInfo.cpp index 18f4adf839e..5e3a48d8bbd 100644 --- a/llvm/lib/Target/PowerPC/PPCJITInfo.cpp +++ b/llvm/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!"); |