diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-09-24 22:17:06 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-09-24 22:17:06 +0000 |
commit | 22db30548df7feb79fabcd8a76c8b4732dc8209d (patch) | |
tree | 1b3e810103fdb86e733289a137dec789a9e69d56 /llvm/lib/Target | |
parent | 1f365bbf550f711ce46ce3790504d4f67b289a44 (diff) | |
download | bcm5719-llvm-22db30548df7feb79fabcd8a76c8b4732dc8209d.tar.gz bcm5719-llvm-22db30548df7feb79fabcd8a76c8b4732dc8209d.zip |
Get rid of duplicate char*/Section* stuff for TLS sections
llvm-svn: 56577
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r-- | llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Target/ELFTargetAsmInfo.cpp | 10 | ||||
-rw-r--r-- | llvm/lib/Target/TargetAsmInfo.cpp | 6 |
3 files changed, 7 insertions, 11 deletions
diff --git a/llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp b/llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp index d41f3502400..3686da8859a 100644 --- a/llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp +++ b/llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp @@ -141,8 +141,6 @@ ARMELFTargetAsmInfo::ARMELFTargetAsmInfo(const ARMTargetMachine &TM): StaticCtorsSection = "\t.section .ctors,\"aw\",%progbits"; StaticDtorsSection = "\t.section .dtors,\"aw\",%progbits"; } - TLSDataSection = "\t.section .tdata,\"awT\",%progbits"; - TLSBSSSection = "\t.section .tbss,\"awT\",%nobits"; } /// Count the number of comma-separated arguments. diff --git a/llvm/lib/Target/ELFTargetAsmInfo.cpp b/llvm/lib/Target/ELFTargetAsmInfo.cpp index 784d9cdbc52..b9e98125759 100644 --- a/llvm/lib/Target/ELFTargetAsmInfo.cpp +++ b/llvm/lib/Target/ELFTargetAsmInfo.cpp @@ -30,9 +30,9 @@ ELFTargetAsmInfo::ELFTargetAsmInfo(const TargetMachine &TM) { BSSSection_ = getUnnamedSection("\t.bss", SectionFlags::Writeable | SectionFlags::BSS); ReadOnlySection_ = getNamedSection("\t.rodata", SectionFlags::None); - TLSDataSection_ = getNamedSection("\t.tdata", - SectionFlags::Writeable | SectionFlags::TLS); - TLSBSSSection_ = getNamedSection("\t.tbss", + TLSDataSection = getNamedSection("\t.tdata", + SectionFlags::Writeable | SectionFlags::TLS); + TLSBSSSection = getNamedSection("\t.tbss", SectionFlags::Writeable | SectionFlags::TLS | SectionFlags::BSS); } @@ -77,9 +77,9 @@ ELFTargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV) const { return MergeableConstSection(GVar); case SectionKind::ThreadData: // ELF targets usually support TLS stuff - return getTLSDataSection_(); + return TLSDataSection; case SectionKind::ThreadBSS: - return getTLSBSSSection_(); + return TLSBSSSection; default: assert(0 && "Unsuported section kind for global"); } diff --git a/llvm/lib/Target/TargetAsmInfo.cpp b/llvm/lib/Target/TargetAsmInfo.cpp index e963d7116ae..d85e5987570 100644 --- a/llvm/lib/Target/TargetAsmInfo.cpp +++ b/llvm/lib/Target/TargetAsmInfo.cpp @@ -35,10 +35,8 @@ TargetAsmInfo::TargetAsmInfo() : SmallDataSection(0), SmallBSSSection(0), SmallRODataSection(0), - TLSDataSection("\t.section .tdata,\"awT\",@progbits"), - TLSDataSection_(0), - TLSBSSSection("\t.section .tbss,\"awT\",@nobits"), - TLSBSSSection_(0), + TLSDataSection(0), + TLSBSSSection(0), ZeroFillDirective(0), NonexecutableStackDirective(0), NeedsSet(false), |