mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 11:26:06 +00:00
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. llvm-svn: 259751
This commit is contained in:
parent
703a93c4e6
commit
adaaccc23b
@ -5127,7 +5127,6 @@ class WindowsARMTargetInfo : public WindowsTargetInfo<ARMleTargetInfo> {
|
||||
public:
|
||||
WindowsARMTargetInfo(const llvm::Triple &Triple)
|
||||
: WindowsTargetInfo<ARMleTargetInfo>(Triple), Triple(Triple) {
|
||||
TLSSupported = false;
|
||||
WCharType = UnsignedShort;
|
||||
SizeType = UnsignedInt;
|
||||
UserLabelPrefix = "";
|
||||
|
5
clang/test/CodeGen/windows-on-arm-tls-support.c
Normal file
5
clang/test/CodeGen/windows-on-arm-tls-support.c
Normal file
@ -0,0 +1,5 @@
|
||||
// RUN: %clang_cc1 -triple thumbv7--windows -fms-extensions -fsyntax-only -verify %s
|
||||
// expected-no-diagnostics
|
||||
|
||||
__declspec(thread) int i;
|
||||
|
Loading…
x
Reference in New Issue
Block a user