aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-05-25 21:28:50 +0000
committerEric Christopher <echristo@apple.com>2010-05-25 21:28:50 +0000
commitfdc794a7f748a2b83c8a2e32378111785ad53146 (patch)
treee4a7a2083bea582e3351b89a9bbb7db1b9a1a5a5 /lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent46c1a8db64739de3c72414f2dd7abe45a83ad197 (diff)
downloadexternal_llvm-fdc794a7f748a2b83c8a2e32378111785ad53146.zip
external_llvm-fdc794a7f748a2b83c8a2e32378111785ad53146.tar.gz
external_llvm-fdc794a7f748a2b83c8a2e32378111785ad53146.tar.bz2
Add support for initialized global data for darwin tls. Update comments
and testcases accordingly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104635 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r--lib/CodeGen/TargetLoweringObjectFileImpl.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index 605e2a8..71ad3fb 100644
--- a/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -670,11 +670,10 @@ const MCSection *TargetLoweringObjectFileMachO::
SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
Mangler *Mang, const TargetMachine &TM) const {
- // Handle one kind of thread local...
+ // Handle thread local data.
if (Kind.isThreadBSS()) return TLSBSSSection;
+ if (Kind.isThreadData()) return TLSDataSection;
- assert(!Kind.isThreadLocal() && "Darwin doesn't support TLS");
-
if (Kind.isText())
return GV->isWeakForLinker() ? TextCoalSection : TextSection;