mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-25 21:46:50 +00:00
0de6255877
We currently error in clang with: "error: thread-local storage is unsupported for the current target", but we can start to get the llvm level ready. When compiling template<typename T> struct foo { static __declspec(thread) int bar; }; template<typename T> __declspec(therad) int foo<T>::bar; template struct foo<int>; msvc produces SECTION HEADER #3 .tls$ name 0 physical address 0 virtual address 4 size of raw data 12F file pointer to raw data (0000012F to 00000132) 0 file pointer to relocation table 0 file pointer to line numbers 0 number of relocations 0 number of line numbers C0301040 flags Initialized Data COMDAT; sym= "public: static int foo<int>::bar" (?bar@?$foo@H@@2HA) 4 byte align Read Write gcc produces a ".data$__emutls_v.<symbol>" for the testcase with __declspec(thread) replaced with thread_local. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195849 91177308-0d34-0410-b5e6-96231b3b80d8 |
||
---|---|---|
.. | ||
alias.s | ||
align-nops.s | ||
basic-coff-64.s | ||
basic-coff.s | ||
bss_section.ll | ||
bss.s | ||
comm.ll | ||
comm.s | ||
diff.s | ||
feat00.s | ||
global_ctors_dtors.ll | ||
linker-options.ll | ||
linkonce-invalid.s | ||
linkonce.s | ||
lit.local.cfg | ||
lset0.s | ||
module-asm.ll | ||
rdata.ll | ||
relocation-imgrel.s | ||
secrel32.s | ||
secrel-variant.s | ||
section-comdat.s | ||
section-invalid-flags.s | ||
section-name-encoding.s | ||
section.s | ||
seh-align1.s | ||
seh-align2.s | ||
seh-align3.s | ||
seh-section.s | ||
seh.s | ||
simple-fixups.s | ||
switch-relocations.ll | ||
symbol-alias.s | ||
symbol-fragment-offset-64.s | ||
symbol-fragment-offset.s | ||
symbol-mangling.ll | ||
tricky-names.ll | ||
weak-symbol.ll | ||
weak.s |