Use indirect calls in PowerPC JIT.
authorTorok Edwin <edwintorok@gmail.com>
Wed, 4 Aug 2010 20:47:44 +0000 (20:47 +0000)
committerTorok Edwin <edwintorok@gmail.com>
Wed, 4 Aug 2010 20:47:44 +0000 (20:47 +0000)
commit0e3a1a8f8fbe34d47c83d19c8b11a3bfdcacad00
treeb359a4840a809c082ab5607307de794b03b6e354
parenta54e0cca4be62678687f943a085e3f64eed9eb2c
Use indirect calls in PowerPC JIT.

See PR5201. There is no way to know if direct calls will be within the allowed
range for BL. Hence emit all calls as indirect when in JIT mode.
Without this long-running applications will fail to JIT on PowerPC with a
relocation failure.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110246 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/PowerPC/PPCSubtarget.cpp
lib/Target/PowerPC/PPCSubtarget.h