ARM: support PIC on Windows on ARM
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 9 May 2014 00:58:32 +0000 (00:58 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 9 May 2014 00:58:32 +0000 (00:58 +0000)
commit74d614a6fc97587c2092807edf5382163d6d1dc6
tree8a571f6385fc62f564ba30437fb78c1ad81c987c
parente584911870eec079aa672a4bf2d99e899cebcea0
ARM: support PIC on Windows on ARM

Handle lowering of global addresses for PIC mode compilation on Windows.  Always
use the movw/movt load to load the address as Windows on ARM requires ARMv7+ and
is a pure Thumb environment.

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