summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Osborne <richard@xmos.com>2009-07-22 11:01:00 +0000
committerRichard Osborne <richard@xmos.com>2009-07-22 11:01:00 +0000
commit4f7f19a7c0bea49ea4a28c27db4846f40d616341 (patch)
tree214483d19b0264601f7658805d55b136a2930d44
parent23f730ab40b6890ade2badeace39a11c54c84d86 (diff)
downloadbcm5719-llvm-4f7f19a7c0bea49ea4a28c27db4846f40d616341.tar.gz
bcm5719-llvm-4f7f19a7c0bea49ea4a28c27db4846f40d616341.zip
Thread local globals don't require special handling by the linker and so can
be placed in the standard data / bss sections. llvm-svn: 76735
-rw-r--r--llvm/lib/Target/XCore/XCoreTargetAsmInfo.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Target/XCore/XCoreTargetAsmInfo.cpp b/llvm/lib/Target/XCore/XCoreTargetAsmInfo.cpp
index 07cee8fb6bb..842c427b3b2 100644
--- a/llvm/lib/Target/XCore/XCoreTargetAsmInfo.cpp
+++ b/llvm/lib/Target/XCore/XCoreTargetAsmInfo.cpp
@@ -29,6 +29,13 @@ XCoreTargetAsmInfo::XCoreTargetAsmInfo(const XCoreTargetMachine &TM)
SectionFlags::Small);
BSSSection_ = getNamedSection("\t.dp.bss", SectionFlags::Writeable |
SectionFlags::BSS | SectionFlags::Small);
+
+ // TLS globals are lowered in the backend to arrays indexed by the current
+ // thread id. After lowering they require no special handling by the linker
+ // and can be placed in the standard data / bss sections.
+ TLSDataSection = DataSection;
+ TLSBSSSection = BSSSection_;
+
if (TM.getSubtargetImpl()->isXS1A()) {
ReadOnlySection = getNamedSection("\t.dp.rodata", SectionFlags::None |
SectionFlags::Writeable |
OpenPOWER on IntegriCloud