diff options
author | Richard Osborne <richard@xmos.com> | 2009-10-06 16:01:09 +0000 |
---|---|---|
committer | Richard Osborne <richard@xmos.com> | 2009-10-06 16:01:09 +0000 |
commit | d7b887410d8c3969522344b8b24c2b86e0f49da1 (patch) | |
tree | 027f82a3d7a5dc0d1b62a5a6e6c10b9dc5b1c7d3 /llvm/lib/Target/XCore/XCoreTargetObjectFile.cpp | |
parent | 29e8555056114fb987ec529331c26a55c4879163 (diff) | |
download | bcm5719-llvm-d7b887410d8c3969522344b8b24c2b86e0f49da1.tar.gz bcm5719-llvm-d7b887410d8c3969522344b8b24c2b86e0f49da1.zip |
Remove xs1a subtarget. xs1a is a preproduction device used in
early development boards which is no longer supported in the
XMOS toolchain.
llvm-svn: 83381
Diffstat (limited to 'llvm/lib/Target/XCore/XCoreTargetObjectFile.cpp')
-rw-r--r-- | llvm/lib/Target/XCore/XCoreTargetObjectFile.cpp | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/llvm/lib/Target/XCore/XCoreTargetObjectFile.cpp b/llvm/lib/Target/XCore/XCoreTargetObjectFile.cpp index c1990d6d0fc..7de3b55d38f 100644 --- a/llvm/lib/Target/XCore/XCoreTargetObjectFile.cpp +++ b/llvm/lib/Target/XCore/XCoreTargetObjectFile.cpp @@ -52,20 +52,13 @@ void XCoreTargetObjectFile::Initialize(MCContext &Ctx, const TargetMachine &TM){ // and can be placed in the standard data / bss sections. TLSDataSection = DataSection; TLSBSSSection = BSSSection; - - if (TM.getSubtarget<XCoreSubtarget>().isXS1A()) - ReadOnlySection = // FIXME: Why is this a writable section for XS1A? - MCSectionXCore::Create(".dp.rodata", MCSectionELF::SHT_PROGBITS, - MCSectionELF::SHF_ALLOC | MCSectionELF::SHF_WRITE | - MCSectionXCore::SHF_DP_SECTION, - SectionKind::getDataRel(), false, getContext()); - else - ReadOnlySection = - MCSectionXCore::Create(".cp.rodata", MCSectionELF::SHT_PROGBITS, - MCSectionELF::SHF_ALLOC | - MCSectionXCore::SHF_CP_SECTION, - SectionKind::getReadOnlyWithRel(), false, - getContext()); + + ReadOnlySection = + MCSectionXCore::Create(".cp.rodata", MCSectionELF::SHT_PROGBITS, + MCSectionELF::SHF_ALLOC | + MCSectionXCore::SHF_CP_SECTION, + SectionKind::getReadOnlyWithRel(), false, + getContext()); // Dynamic linking is not supported. Data with relocations is placed in the // same section as data without relocations. |