summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit19a4b843cc81c15c3acaf44fe42e74d1add7a634 (patch)
tree82a992c0756bc388af8578a9b2a0100bc82de833 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent492d4f409a05a3a2103d57f02fb4b82c749e7db3 (diff)
downloadbcm5719-llvm-19a4b843cc81c15c3acaf44fe42e74d1add7a634.tar.gz
bcm5719-llvm-19a4b843cc81c15c3acaf44fe42e74d1add7a634.zip
Add support for initialized global data for darwin tls. Update comments
and testcases accordingly. llvm-svn: 104635
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index 605e2a817b1..71ad3fb6f99 100644
--- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud