summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/XCore/XCoreTargetAsmInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-21 22:25:52 +0000
committerChris Lattner <sabre@nondot.org>2009-07-21 22:25:52 +0000
commitaa30d25bb4a7c4a4944476772ac353de2d1b22f5 (patch)
tree9ad1a49618ce53064d4eee85f303c7d6b6b3d64e /llvm/lib/Target/XCore/XCoreTargetAsmInfo.cpp
parente3228acc62ef42947db919f4da3c44869366bf7c (diff)
downloadbcm5719-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/lib/Target/XCore/XCoreTargetAsmInfo.cpp')
-rw-r--r--llvm/lib/Target/XCore/XCoreTargetAsmInfo.cpp17
1 files changed, 0 insertions, 17 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);
OpenPOWER on IntegriCloud