[MinGW] [ARM] Add stubs for potential automatic dllimported variables
authorMartin Storsjo <martin@martin.st>
Fri, 31 Aug 2018 08:00:25 +0000 (08:00 +0000)
committerMartin Storsjo <martin@martin.st>
Fri, 31 Aug 2018 08:00:25 +0000 (08:00 +0000)
commit2dcaa41e1ef234a3387a2cb83288252b90c22fb8
treeabd2f61eff312ec16a1e87fec644cfd24a5f61d1
parent802fcb4167a309dc5a10af14d1a1aaf5a2c625de
[MinGW] [ARM] Add stubs for potential automatic dllimported variables

The runtime pseudo relocations can't handle the ARM format embedded
addresses in movw/movt pairs. By using stubs, the potentially
dllimported addresses can be touched up by the runtime pseudo relocation
framework.

Differential Revision: https://reviews.llvm.org/D51450

llvm-svn: 341176
llvm/lib/Target/ARM/ARMAsmPrinter.cpp
llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
llvm/lib/Target/ARM/ARMISelLowering.cpp
llvm/lib/Target/ARM/MCTargetDesc/ARMBaseInfo.h
llvm/test/CodeGen/ARM/Windows/mingw-refptr.ll [new file with mode: 0644]
llvm/test/CodeGen/ARM/Windows/pic.ll
llvm/test/CodeGen/ARM/emutls_generic.ll