diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-07-21 22:25:52 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-07-21 22:25:52 +0000 |
| commit | aa30d25bb4a7c4a4944476772ac353de2d1b22f5 (patch) | |
| tree | 9ad1a49618ce53064d4eee85f303c7d6b6b3d64e /llvm | |
| parent | e3228acc62ef42947db919f4da3c44869366bf7c (diff) | |
| download | bcm5719-llvm-aa30d25bb4a7c4a4944476772ac353de2d1b22f5.tar.gz bcm5719-llvm-aa30d25bb4a7c4a4944476772ac353de2d1b22f5.zip | |
Remove the XCore custom implementation of MergeableConstSection, relying on
the generic ELF version instead. This will result in its mergable constant
sections getting named ".rodata.cst4" instead of ".cp.const4", but the
linker looks at the section flags, not the name of the section AFAICT.
llvm-svn: 76659
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Target/XCore/XCoreTargetAsmInfo.cpp | 17 | ||||
| -rw-r--r-- | llvm/lib/Target/XCore/XCoreTargetAsmInfo.h | 1 |
2 files changed, 0 insertions, 18 deletions
diff --git a/llvm/lib/Target/XCore/XCoreTargetAsmInfo.cpp b/llvm/lib/Target/XCore/XCoreTargetAsmInfo.cpp index 3d2203d6bb2..6c613ef1665 100644 --- a/llvm/lib/Target/XCore/XCoreTargetAsmInfo.cpp +++ b/llvm/lib/Target/XCore/XCoreTargetAsmInfo.cpp @@ -89,23 +89,6 @@ XCoreTargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV) const { return ELFTargetAsmInfo::SelectSectionForGlobal(GV); } -const Section* -XCoreTargetAsmInfo::MergeableConstSection(const Type *Ty) const { - const TargetData *TD = TM.getTargetData(); - - unsigned Size = TD->getTypeAllocSize(Ty); - if (Size == 4 || Size == 8 || Size == 16) { - std::string Name = ".cp.const" + utostr(Size); - - return getNamedSection(Name.c_str(), - SectionFlags::setEntitySize(SectionFlags::Mergeable | - SectionFlags::Small, - Size)); - } - - return getReadOnlySection(); -} - unsigned XCoreTargetAsmInfo:: SectionFlagsForGlobal(const GlobalValue *GV, const char* Name) const { unsigned Flags = ELFTargetAsmInfo::SectionFlagsForGlobal(GV, Name); diff --git a/llvm/lib/Target/XCore/XCoreTargetAsmInfo.h b/llvm/lib/Target/XCore/XCoreTargetAsmInfo.h index a1e11fe7868..3582effa901 100644 --- a/llvm/lib/Target/XCore/XCoreTargetAsmInfo.h +++ b/llvm/lib/Target/XCore/XCoreTargetAsmInfo.h @@ -29,7 +29,6 @@ namespace llvm { explicit XCoreTargetAsmInfo(const XCoreTargetMachine &TM); virtual const Section* SelectSectionForGlobal(const GlobalValue *GV) const; - const Section* MergeableConstSection(const Type *Ty) const; virtual unsigned SectionFlagsForGlobal(const GlobalValue *GV = NULL, const char* name = NULL) const; |

