diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-27 05:32:16 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-27 05:32:16 +0000 |
commit | 149465ea06451b9ec1881347b2dccd311ab32576 (patch) | |
tree | 67380d89f607e4f46c879187360723f98bca45ec /llvm/lib/Target/XCore/XCoreTargetAsmInfo.cpp | |
parent | 4ead0b9e1cfe52925dd9a8fef2ea9845396947df (diff) | |
download | bcm5719-llvm-149465ea06451b9ec1881347b2dccd311ab32576.tar.gz bcm5719-llvm-149465ea06451b9ec1881347b2dccd311ab32576.zip |
Eliminate SectionFlags, just embed a SectionKind into Section
instead and drive things based off of that.
llvm-svn: 77184
Diffstat (limited to 'llvm/lib/Target/XCore/XCoreTargetAsmInfo.cpp')
-rw-r--r-- | llvm/lib/Target/XCore/XCoreTargetAsmInfo.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Target/XCore/XCoreTargetAsmInfo.cpp b/llvm/lib/Target/XCore/XCoreTargetAsmInfo.cpp index 9f6727b9c07..4c8786a4d47 100644 --- a/llvm/lib/Target/XCore/XCoreTargetAsmInfo.cpp +++ b/llvm/lib/Target/XCore/XCoreTargetAsmInfo.cpp @@ -24,10 +24,9 @@ using namespace llvm; XCoreTargetAsmInfo::XCoreTargetAsmInfo(const XCoreTargetMachine &TM) : ELFTargetAsmInfo(TM) { SupportsDebugInformation = true; - TextSection = getUnnamedSection("\t.text", SectionFlags::Code); - DataSection = getNamedSection("\t.dp.data", SectionFlags::Writable); - BSSSection_ = getNamedSection("\t.dp.bss", SectionFlags::Writable | - SectionFlags::BSS); + TextSection = getUnnamedSection("\t.text", SectionKind::Text); + DataSection = getNamedSection("\t.dp.data", SectionKind::DataRel); + BSSSection_ = getNamedSection("\t.dp.bss", SectionKind::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,9 +35,10 @@ XCoreTargetAsmInfo::XCoreTargetAsmInfo(const XCoreTargetMachine &TM) TLSBSSSection = BSSSection_; if (TM.getSubtargetImpl()->isXS1A()) - ReadOnlySection = getNamedSection("\t.dp.rodata", SectionFlags::Writable); + // FIXME: Why is this writable??? + ReadOnlySection = getNamedSection("\t.dp.rodata", SectionKind::DataRel); else - ReadOnlySection = getNamedSection("\t.cp.rodata", SectionFlags::None); + ReadOnlySection = getNamedSection("\t.cp.rodata", SectionKind::ReadOnly); Data16bitsDirective = "\t.short\t"; Data32bitsDirective = "\t.long\t"; Data64bitsDirective = 0; |