From 819c4f365fe2bf9be75faafa667fb22366dabaf5 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 22 Jul 2009 23:27:22 +0000 Subject: remove SectionFlags::Small: it is only used on Xcore, and we'll find a better solution for it in the future. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76818 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/XCore/XCoreTargetAsmInfo.cpp | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'lib/Target/XCore') diff --git a/lib/Target/XCore/XCoreTargetAsmInfo.cpp b/lib/Target/XCore/XCoreTargetAsmInfo.cpp index 842c427b3b..6fc6dc2c7b 100644 --- a/lib/Target/XCore/XCoreTargetAsmInfo.cpp +++ b/lib/Target/XCore/XCoreTargetAsmInfo.cpp @@ -25,10 +25,9 @@ XCoreTargetAsmInfo::XCoreTargetAsmInfo(const XCoreTargetMachine &TM) : ELFTargetAsmInfo(TM) { SupportsDebugInformation = true; TextSection = getUnnamedSection("\t.text", SectionFlags::Code); - DataSection = getNamedSection("\t.dp.data", SectionFlags::Writeable | - SectionFlags::Small); + DataSection = getNamedSection("\t.dp.data", SectionFlags::Writeable); BSSSection_ = getNamedSection("\t.dp.bss", SectionFlags::Writeable | - SectionFlags::BSS | SectionFlags::Small); + SectionFlags::BSS); // 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 @@ -36,14 +35,10 @@ XCoreTargetAsmInfo::XCoreTargetAsmInfo(const XCoreTargetMachine &TM) TLSDataSection = DataSection; TLSBSSSection = BSSSection_; - if (TM.getSubtargetImpl()->isXS1A()) { - ReadOnlySection = getNamedSection("\t.dp.rodata", SectionFlags::None | - SectionFlags::Writeable | - SectionFlags::Small); - } else { - ReadOnlySection = getNamedSection("\t.cp.rodata", SectionFlags::None | - SectionFlags::Small); - } + if (TM.getSubtargetImpl()->isXS1A()) + ReadOnlySection = getNamedSection("\t.dp.rodata", SectionFlags::Writeable); + else + ReadOnlySection = getNamedSection("\t.cp.rodata", SectionFlags::None); Data16bitsDirective = "\t.short\t"; Data32bitsDirective = "\t.long\t"; Data64bitsDirective = 0; -- cgit v1.2.3-70-g09d2