[ARM] Allow using emulated tls on platforms other than ELF
commitacda67c97a58432a188ec293a45710ac53f2525a
authorMartin Storsjo <martin@martin.st>
Mon, 4 Dec 2017 09:08:55 +0000 (4 09:08 +0000)
committerMartin Storsjo <martin@martin.st>
Mon, 4 Dec 2017 09:08:55 +0000 (4 09:08 +0000)
treef11b774aa4f86e653f791e38b952d015c945b44e
parent6941e2428a740e733c5eccbe22e27e56d41563af
[ARM] Allow using emulated tls on platforms other than ELF

This matches how it is done on X86.

This allows using emulated tls on windows; in MinGW environments,
native tls isn't supported at the moment.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319643 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelLowering.cpp
test/CodeGen/ARM/emutls_generic.ll