diff options
author | Eric Christopher <echristo@apple.com> | 2010-05-17 22:53:55 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-05-17 22:53:55 +0000 |
commit | 9635b3da6bf1fef5b5a9ee0c8345d4f9b5680622 (patch) | |
tree | dddf179d65bc5c9875aaab20fbaa80d7d48f4e8b /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | f2c9a96f3c6f2857f11d9ce4bca81f7f47638f07 (diff) | |
download | bcm5719-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.cpp | 6 |
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, |