llvm.org GIT mirror llvm / 374dd7c
ARM: fix `-mlong-calls` for WoA Not all code-paths set the relocation model to static for Windows. This currently breaks on Windows ARM with `-mlong-calls` when built with clang. Loosen the assertion to what it was previously. We would ideally ensure that all the configuration sets Windows to static relocation model. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274570 91177308-0d34-0410-b5e6-96231b3b80d8 Saleem Abdulrasool 4 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
18131813 auto PtrVt = getPointerTy(DAG.getDataLayout());
18151815 if (Subtarget->genLongCalls()) {
1816 assert(!isPositionIndependent() &&
1816 assert((!isPositionIndependent() || Subtarget->isTargetWindows()) &&
18171817 "long-calls codegen is not position independent!");
18181818 // Handle a global address or an external symbol. If it's not one of
18191819 // those, the target's already in a register, so we don't need to do
None ; RUN: llc -mtriple=thumbv7-windows -mcpu=cortex-a9 -mattr=+long-calls -o - %s \
0 ; RUN: llc -mtriple=thumbv7-windows -mcpu=cortex-a9 -relocation-model pic -mattr=+long-calls -o - %s \
11 ; RUN: | FileCheck %s
33 declare arm_aapcs_vfpcc void @callee()