Skip to content

Commit af22e07

Browse files
committed
[RISCV] Mark TLS as supported
Inform Clang that TLS is implemented by LLVM for RISC-V Differential Revision: https://reviews.llvm.org/D57055 llvm-svn: 363776
1 parent 9f9691c commit af22e07

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

clang/lib/Basic/Targets/RISCV.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ class RISCVTargetInfo : public TargetInfo {
3535
RISCVTargetInfo(const llvm::Triple &Triple, const TargetOptions &)
3636
: TargetInfo(Triple), HasM(false), HasA(false), HasF(false),
3737
HasD(false), HasC(false) {
38-
TLSSupported = false;
3938
LongDoubleWidth = 128;
4039
LongDoubleAlign = 128;
4140
LongDoubleFormat = &llvm::APFloat::IEEEquad();

clang/test/CodeGen/thread-specifier.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
// RUN: %clang_cc1 -triple i686-pc-linux-gnu -emit-llvm -o - %s | FileCheck %s
2+
// RUN: %clang_cc1 -triple riscv32 -emit-llvm -o - %s | FileCheck %s
3+
// RUN: %clang_cc1 -triple riscv64 -emit-llvm -o - %s | FileCheck %s
24

35
// CHECK: @b = external thread_local global
46
// CHECK: @d.e = internal thread_local global

0 commit comments

Comments
 (0)