mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:43:36 +01:00
llvm-objdump: sort phdr type strings in advance of adding new ones
llvm-svn: 290494
This commit is contained in:
parent
3d00c1e5ad
commit
4b908b23e2
@ -30,20 +30,20 @@ template <class ELFT> void printProgramHeaders(const ELFFile<ELFT> *o) {
|
||||
errorToErrorCode(ProgramHeaderOrError.takeError()).message());
|
||||
for (const typename ELFO::Elf_Phdr &Phdr : *ProgramHeaderOrError) {
|
||||
switch (Phdr.p_type) {
|
||||
case ELF::PT_LOAD:
|
||||
outs() << " LOAD ";
|
||||
break;
|
||||
case ELF::PT_GNU_STACK:
|
||||
outs() << " STACK ";
|
||||
case ELF::PT_DYNAMIC:
|
||||
outs() << " DYNAMIC ";
|
||||
break;
|
||||
case ELF::PT_GNU_EH_FRAME:
|
||||
outs() << "EH_FRAME ";
|
||||
break;
|
||||
case ELF::PT_GNU_STACK:
|
||||
outs() << " STACK ";
|
||||
break;
|
||||
case ELF::PT_INTERP:
|
||||
outs() << " INTERP ";
|
||||
break;
|
||||
case ELF::PT_DYNAMIC:
|
||||
outs() << " DYNAMIC ";
|
||||
case ELF::PT_LOAD:
|
||||
outs() << " LOAD ";
|
||||
break;
|
||||
case ELF::PT_PHDR:
|
||||
outs() << " PHDR ";
|
||||
|
Loading…
Reference in New Issue
Block a user