summaryrefslogtreecommitdiff
path: root/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-05-17 22:53:55 +0000
committerEric Christopher <echristo@apple.com>2010-05-17 22:53:55 +0000
commitc6177a4531a5d7e2207a3184cc8a4f1792073a7d (patch)
tree3d6334e99b927d2cf415aef36e533c1337018bcb /lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent44bfdd3d78d32bb8fcd5ad123199246e554306d8 (diff)
downloadllvm-c6177a4531a5d7e2207a3184cc8a4f1792073a7d.tar.gz
llvm-c6177a4531a5d7e2207a3184cc8a4f1792073a7d.tar.bz2
llvm-c6177a4531a5d7e2207a3184cc8a4f1792073a7d.tar.xz
More data/parsing support for tls directives. Add a few more testcases
and cleanup comments as well. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103985 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r--lib/CodeGen/TargetLoweringObjectFileImpl.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index 5bb33c2e35..8376819858 100644
--- a/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -475,6 +475,12 @@ void TargetLoweringObjectFileMachO::Initialize(MCContext &Ctx,
= getContext().getMachOSection("__DATA", "__thread_vars",
MCSectionMachO::S_THREAD_LOCAL_VARIABLES,
SectionKind::getDataRel());
+
+ TLSThreadInitSection
+ = getContext().getMachOSection("__DATA", "__thread_init",
+ MCSectionMachO::S_THREAD_LOCAL_INIT_FUNCTION_POINTERS,
+ SectionKind::getDataRel());
+
CStringSection // .cstring
= getContext().getMachOSection("__TEXT", "__cstring",
MCSectionMachO::S_CSTRING_LITERALS,