[llvm-readobj] Change "SHT_MIPS_DWARF" to "MIPS_DWARF"

Summary:
This is to be consistent with the display of other MIPS section types.
This string is also used by binutils-gdb/binutils/readelf.c:get_mips_section_type_name

Since we are here, reorder the two enum constatns because SHT_MIPS_DWARF < SHT_MIPS_ABIFLAGS.

Reviewers: jhenderson, atanasyan

Reviewed By: jhenderson

Subscribers: aprantl, sdardis, arichardson, rupprecht, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D58496

llvm-svn: 354571
This commit is contained in:
Fangrui Song 2019-02-21 11:35:41 +00:00
parent 206740e756
commit 8443e88910
1 changed files with 2 additions and 2 deletions

View File

@ -2860,10 +2860,10 @@ std::string getSectionTypeString(unsigned Arch, unsigned Type) {
return "MIPS_REGINFO";
case SHT_MIPS_OPTIONS:
return "MIPS_OPTIONS";
case SHT_MIPS_DWARF:
return "MIPS_DWARF";
case SHT_MIPS_ABIFLAGS:
return "MIPS_ABIFLAGS";
case SHT_MIPS_DWARF:
return "SHT_MIPS_DWARF";
}
break;
}