llvm-6502/test/MC
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
..
AArch64 [AArch64] Add support for NEON scalar floating-point absolute difference. 2013-11-27 01:45:58 +00:00
ARM ARM integrated assembler generates incorrect nop opcode 2013-11-25 19:11:13 +00:00
AsmParser
COFF Use the same tls section name as msvc. 2013-11-27 15:52:11 +00:00
Disassembler [AArch64] Add support for NEON scalar floating-point absolute difference. 2013-11-27 01:45:58 +00:00
ELF
MachO
Markup
Mips reverts 195057 per request 2013-11-19 20:53:28 +00:00
PowerPC
SystemZ
X86 Use -triple to fix the test on non-ELF hosts. 2013-11-25 20:46:18 +00:00