[llvm-commits] [llvm] r76735 - /llvm/trunk/lib/Target/XCore/XCoreTargetAsmInfo.cpp
Richard Osborne
richard at xmos.com
Wed Jul 22 04:01:13 PDT 2009
Author: friedgold
Date: Wed Jul 22 06:01:00 2009
New Revision: 76735
URL: http://llvm.org/viewvc/llvm-project?rev=76735&view=rev
Log:
Thread local globals don't require special handling by the linker and so can
be placed in the standard data / bss sections.
Modified:
llvm/trunk/lib/Target/XCore/XCoreTargetAsmInfo.cpp
Modified: llvm/trunk/lib/Target/XCore/XCoreTargetAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/XCore/XCoreTargetAsmInfo.cpp?rev=76735&r1=76734&r2=76735&view=diff
==============================================================================
--- llvm/trunk/lib/Target/XCore/XCoreTargetAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/XCore/XCoreTargetAsmInfo.cpp Wed Jul 22 06:01:00 2009
@@ -29,6 +29,13 @@
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 |
More information about the llvm-commits
mailing list