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)
commit90386ad60aaf70581293138f4124a2ec47ac7eb7
tree2760901288cde2e2ad89050bcc11602a5f6c1a9d
parentaea65e9b130c059ab8aad04029324249287487f0
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.

llvm-svn: 210399
llvm/lib/Target/ARM/ARMISelLowering.cpp
llvm/test/CodeGen/ARM/Windows/long-calls.ll [new file with mode: 0644]