Skip to content

Commit 61cd368

Browse files
committed
[ObjectYAML] Support SHT_MIPS_DWARF section type flag
Also reorder SHT_MIPS_DWARF and SHT_MIPS_ABIFLAGS in Object/ELF.cpp. The test will be added by D58457. llvm-svn: 354563
1 parent 8ff2e86 commit 61cd368

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

llvm/lib/Object/ELF.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ StringRef llvm::object::getELFSectionTypeName(uint32_t Machine, unsigned Type) {
219219
switch (Type) {
220220
STRINGIFY_ENUM_CASE(ELF, SHT_MIPS_REGINFO);
221221
STRINGIFY_ENUM_CASE(ELF, SHT_MIPS_OPTIONS);
222-
STRINGIFY_ENUM_CASE(ELF, SHT_MIPS_ABIFLAGS);
223222
STRINGIFY_ENUM_CASE(ELF, SHT_MIPS_DWARF);
223+
STRINGIFY_ENUM_CASE(ELF, SHT_MIPS_ABIFLAGS);
224224
}
225225
break;
226226
default:

llvm/lib/ObjectYAML/ELFYAML.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,7 @@ void ScalarEnumerationTraits<ELFYAML::ELF_SHT>::enumeration(
475475
case ELF::EM_MIPS:
476476
ECase(SHT_MIPS_REGINFO);
477477
ECase(SHT_MIPS_OPTIONS);
478+
ECase(SHT_MIPS_DWARF);
478479
ECase(SHT_MIPS_ABIFLAGS);
479480
break;
480481
default:

0 commit comments

Comments
 (0)