diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-07-26 06:48:26 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-07-26 06:48:26 +0000 |
| commit | 29151b0218494750c72b48b9cfdd02e678db3cd6 (patch) | |
| tree | 39c26c50ce150677da3d50a88b1c43fb48474450 /llvm/lib/CodeGen | |
| parent | abd47512f736c08981d8bfcf24e6c01984dc4bba (diff) | |
| download | bcm5719-llvm-29151b0218494750c72b48b9cfdd02e678db3cd6.tar.gz bcm5719-llvm-29151b0218494750c72b48b9cfdd02e678db3cd6.zip | |
rename Mergable -> Mergeable and Writable -> Writeable
llvm-svn: 77138
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 10 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/ELFWriter.cpp | 11 |
2 files changed, 10 insertions, 11 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index d82710fb10f..5da01a22509 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -315,14 +315,14 @@ void AsmPrinter::EmitConstantPool(MachineConstantPool *MCP) { 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; } } - const Section *S = TAI->getSectionForMergableConstant(Kind); + const Section *S = TAI->getSectionForMergeableConstant(Kind); // The number of sections are small, just do a linear search from the // last section to the first. diff --git a/llvm/lib/CodeGen/ELFWriter.cpp b/llvm/lib/CodeGen/ELFWriter.cpp index f34f86b4f4b..97b7ff0c8d9 100644 --- a/llvm/lib/CodeGen/ELFWriter.cpp +++ b/llvm/lib/CodeGen/ELFWriter.cpp @@ -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()); |

