rename Mergable -> Mergeable and Writable -> Writeable

llvm-svn: 77138
This commit is contained in:
Chris Lattner
2009-07-26 06:48:26 +00:00
parent abd47512f7
commit 29151b0218
9 changed files with 87 additions and 82 deletions

View File

@@ -161,15 +161,14 @@ ELFSection &ELFWriter::getConstantPoolSection(MachineConstantPoolEntry &CPE) {
case 1: Kind = SectionKind::get(SectionKind::ReadOnlyWithRelLocal); break;
case 0:
switch (TM.getTargetData()->getTypeAllocSize(CPE.getType())) {
case 4: Kind = SectionKind::get(SectionKind::MergableConst4); break;
case 8: Kind = SectionKind::get(SectionKind::MergableConst8); break;
case 16: Kind = SectionKind::get(SectionKind::MergableConst16); break;
default: Kind = SectionKind::get(SectionKind::MergableConst); break;
case 4: Kind = SectionKind::get(SectionKind::MergeableConst4); break;
case 8: Kind = SectionKind::get(SectionKind::MergeableConst8); break;
case 16: Kind = SectionKind::get(SectionKind::MergeableConst16); break;
default: Kind = SectionKind::get(SectionKind::MergeableConst); break;
}
}
std::string CstPoolName = TAI->getSectionForMergableConstant(Kind)->getName();
return getSection(CstPoolName,
return getSection(TAI->getSectionForMergeableConstant(Kind)->getName(),
ELFSection::SHT_PROGBITS,
ELFSection::SHF_MERGE | ELFSection::SHF_ALLOC,
CPE.getAlignment());