diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-22 23:27:22 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-22 23:27:22 +0000 |
commit | 819c4f365fe2bf9be75faafa667fb22366dabaf5 (patch) | |
tree | 97b31447f7fd66acf61a23afdf925d16f2af5a00 /lib/Target/XCore/XCoreTargetAsmInfo.cpp | |
parent | 41d0b9d952c1d329c80e091160e71a21570ef18c (diff) |
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
Diffstat (limited to 'lib/Target/XCore/XCoreTargetAsmInfo.cpp')
-rw-r--r-- | lib/Target/XCore/XCoreTargetAsmInfo.cpp | 17 |
1 files changed, 6 insertions, 11 deletions
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; |