summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2016-06-04 18:27:22 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2016-06-04 18:27:22 +0000
commit1fcdc23a6e7b1f7fad79f9c924958b9c16e6ee1f (patch)
tree5bdd0ffb740ccaf855783378ba8589e91b9606d8 /llvm/lib
parentfd2eda4f64fa9ba788c1628ebe59bf1504e77b9e (diff)
downloadbcm5719-llvm-1fcdc23a6e7b1f7fad79f9c924958b9c16e6ee1f.tar.gz
bcm5719-llvm-1fcdc23a6e7b1f7fad79f9c924958b9c16e6ee1f.zip
X86: enable TLS on Windows itanium
Windows itanium is nearly identical to windows-msvc (MS ABI for C, itanium for C++). Enable the TLS support for the target similar to the MSVC model. llvm-svn: 271797
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/X86ISelLowering.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index f65dcfbee6a..3bc56442ebb 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -12975,6 +12975,7 @@ X86TargetLowering::LowerGlobalTLSAddress(SDValue Op, SelectionDAG &DAG) const {
}
if (Subtarget.isTargetKnownWindowsMSVC() ||
+ Subtarget.isTargetWindowsItanium() ||
Subtarget.isTargetWindowsGNU()) {
// Just use the implicit TLS architecture
// Need to generate someting similar to:
OpenPOWER on IntegriCloud