ARM: correct assertion for long-calls on WoA
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sat, 7 Jun 2014 20:29:27 +0000 (20:29 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sat, 7 Jun 2014 20:29:27 +0000 (20:29 +0000)
commit104e73dd347657e5f7650cbc8dce988cc2b933d7
tree1d7fe27e10f7f6c2209aa59ccda75c20926c2d19
parent3ddcc4965059b1b5b8e3e57817660a4b931f295c
ARM: correct assertion for long-calls on WoA

COFF/PE, so the relocation model is never static.  Loosen the assertion
accordingly.  The relocation can still be emitted properly, as it will be
converted to an IMAGE_REL_ARM_ADDR32 which will be resolved by the loader
taking the base relocation into account.  This is necessary to permit the
emission of long calls which can be controlled via the -mlong-calls option in
the driver.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210399 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelLowering.cpp
test/CodeGen/ARM/Windows/long-calls.ll [new file with mode: 0644]