r259751 - Basic: mark TLS as supported on Windows on ARM
Saleem Abdulrasool via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 3 21:05:24 PST 2016
Author: compnerd
Date: Wed Feb 3 23:05:23 2016
New Revision: 259751
URL: http://llvm.org/viewvc/llvm-project?rev=259751&view=rev
Log:
Basic: mark TLS as supported on Windows on ARM
LLVM can now lower TLS access as per the MS ABI on ARM. This enables the
generation of TLS access for Windows on ARM.
Added:
cfe/trunk/test/CodeGen/windows-on-arm-tls-support.c
Modified:
cfe/trunk/lib/Basic/Targets.cpp
Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=259751&r1=259750&r2=259751&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Wed Feb 3 23:05:23 2016
@@ -5127,7 +5127,6 @@ class WindowsARMTargetInfo : public Wind
public:
WindowsARMTargetInfo(const llvm::Triple &Triple)
: WindowsTargetInfo<ARMleTargetInfo>(Triple), Triple(Triple) {
- TLSSupported = false;
WCharType = UnsignedShort;
SizeType = UnsignedInt;
UserLabelPrefix = "";
Added: cfe/trunk/test/CodeGen/windows-on-arm-tls-support.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/windows-on-arm-tls-support.c?rev=259751&view=auto
==============================================================================
--- cfe/trunk/test/CodeGen/windows-on-arm-tls-support.c (added)
+++ cfe/trunk/test/CodeGen/windows-on-arm-tls-support.c Wed Feb 3 23:05:23 2016
@@ -0,0 +1,5 @@
+// RUN: %clang_cc1 -triple thumbv7--windows -fms-extensions -fsyntax-only -verify %s
+// expected-no-diagnostics
+
+__declspec(thread) int i;
+
More information about the cfe-commits
mailing list