llvm/test/MC/COFF
Rafael Espindola 0de6255877 Use the same tls section name as msvc.
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
2013-11-27 15:52:11 +00:00
..
alias.s Revert "COFF: Emit all MCSymbols rather than filtering out some of them" 2013-11-18 23:08:12 +00:00
align-nops.s
basic-coff-64.s
basic-coff.s
bss_section.ll [-cxx-abi microsoft] Stick zero initialized symbols into the .bss section for COFF 2013-08-13 01:23:53 +00:00
bss.s
comm.ll
comm.s Fix .comm and .lcomm on COFF. 2013-11-25 16:06:04 +00:00
diff.s
feat00.s Revert "COFF: Emit all MCSymbols rather than filtering out some of them" 2013-11-18 23:08:12 +00:00
global_ctors_dtors.ll
linker-options.ll
linkonce-invalid.s
linkonce.s
lit.local.cfg [tests] Cleanup initialization of test suffixes. 2013-08-16 00:37:11 +00:00
lset0.s Revert "COFF: Emit all MCSymbols rather than filtering out some of them" 2013-11-18 23:08:12 +00:00
module-asm.ll
rdata.ll Revert "coff also doesn't have a ReadOnlySection yet, (!)" 2013-08-08 01:50:52 +00:00
relocation-imgrel.s
secrel32.s
secrel-variant.s
section-comdat.s Support multiple COFF sections with the same name but different COMDAT. 2013-11-19 19:52:52 +00:00
section-invalid-flags.s
section-name-encoding.s MC: Support larger COFF string tables 2013-07-29 12:30:12 +00:00
section.s
seh-align1.s Fix alignment of unwind data. 2013-09-15 18:01:09 +00:00
seh-align2.s Fix alignment of unwind data. 2013-09-15 18:01:09 +00:00
seh-align3.s Fix alignment of unwind data. 2013-09-15 18:01:09 +00:00
seh-section.s
seh.s Generate IMAGE_REL_AMD64_ADDR32NB relocations for SEH 2013-09-15 17:46:46 +00:00
simple-fixups.s
switch-relocations.ll
symbol-alias.s
symbol-fragment-offset-64.s
symbol-fragment-offset.s
symbol-mangling.ll
tricky-names.ll Use simple section names for COMDAT sections on COFF. 2013-11-27 01:18:37 +00:00
weak-symbol.ll Use the same tls section name as msvc. 2013-11-27 15:52:11 +00:00
weak.s