llvm-6502/lib
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
..
Analysis [PM] Split the CallGraph out from the ModulePass which creates the 2013-11-26 04:19:30 +00:00
AsmParser Make it explicit that nulls are not allowed in names. 2013-11-19 21:12:39 +00:00
Bitcode Fix spacing, forward declare order. 2013-11-18 02:51:33 +00:00
CodeGen Use the same tls section name as msvc. 2013-11-27 15:52:11 +00:00
DebugInfo DebugInfo: Avoid emitting pubtype entries for type DIEs that just indirect to a type unit. 2013-11-26 00:22:37 +00:00
ExecutionEngine [mips] Resolve relocation for the stubs in MCJIT when load address is known 2013-11-19 21:56:00 +00:00
IR Fix spurious return introduced by my earlier patch to DebugInfo 2013-11-26 18:54:37 +00:00
IRReader
Linker
LTO Use array_pod_sort instead of std::sort 2013-11-16 16:15:56 +00:00
MC Use simple section names for COMDAT sections on COFF. 2013-11-27 01:18:37 +00:00
Object
Option
Support Lift self-copy protection up to the header file and add self-move 2013-11-26 00:54:44 +00:00
TableGen
Target Remove more dead code now that this is only used for inline asm. 2013-11-27 15:13:06 +00:00
Transforms PR1860 - We can't save a list of ExtractElement instructions to CSE because some of these instructions 2013-11-26 22:24:25 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile