summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit9635b3da6bf1fef5b5a9ee0c8345d4f9b5680622 (patch)
treedddf179d65bc5c9875aaab20fbaa80d7d48f4e8b /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parentf2c9a96f3c6f2857f11d9ce4bca81f7f47638f07 (diff)
downloadbcm5719-llvm-9635b3da6bf1fef5b5a9ee0c8345d4f9b5680622.tar.gz
bcm5719-llvm-9635b3da6bf1fef5b5a9ee0c8345d4f9b5680622.zip
More data/parsing support for tls directives. Add a few more testcases
and cleanup comments as well. llvm-svn: 103985
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index 5bb33c2e357..83768198585 100644
--- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/llvm/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,
OpenPOWER on IntegriCloud