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 Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
basic-coff-64.s Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
basic-coff.s Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
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 Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
comm.ll Fix alignment of .comm and .lcomm on mingw32. 2012-09-07 21:08:01 +00:00
comm.s Fix .comm and .lcomm on COFF. 2013-11-25 16:06:04 +00:00
diff.s Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
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 Emit dtors into proper section while compiling in vcpp-compatible mode. 2012-09-23 15:53:47 +00:00
linker-options.ll [mc-coff] Forward Linker Option flags into the .drectve section 2013-04-25 19:34:41 +00:00
linkonce-invalid.s MC: Implement COFF .linkonce directive 2013-07-06 12:13:10 +00:00
linkonce.s MC: Implement COFF .linkonce directive 2013-07-06 12:13:10 +00:00
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 Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
rdata.ll Revert "coff also doesn't have a ReadOnlySection yet, (!)" 2013-08-08 01:50:52 +00:00
relocation-imgrel.s MC: Support COFF image-relative MCSymbolRefs 2013-04-10 23:28:17 +00:00
secrel32.s Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
secrel-variant.s Fix section relocation for SECTIONREL32 with immediate offset. 2013-04-25 19:27:05 +00:00
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 MC: Add .section directive to COFF 2013-07-04 21:32:07 +00:00
section-name-encoding.s MC: Support larger COFF string tables 2013-07-29 12:30:12 +00:00
section.s MC: Add .section directive to COFF 2013-07-04 21:32:07 +00:00
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 MC: Add .section directive to COFF 2013-07-04 21:32:07 +00:00
seh.s Generate IMAGE_REL_AMD64_ADDR32NB relocations for SEH 2013-09-15 17:46:46 +00:00
simple-fixups.s Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
switch-relocations.ll
symbol-alias.s Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
symbol-fragment-offset-64.s Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
symbol-fragment-offset.s Replace coff-/elf-dump with llvm-readobj 2013-04-12 04:06:46 +00:00
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 COFF: Fix weak external aliases. 2013-04-22 18:48:56 +00:00