[llvm] r290494 - llvm-objdump: sort phdr type strings in advance of adding new ones
Ed Maste via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 24 06:53:45 PST 2016
Author: emaste
Date: Sat Dec 24 08:53:45 2016
New Revision: 290494
URL: http://llvm.org/viewvc/llvm-project?rev=290494&view=rev
Log:
llvm-objdump: sort phdr type strings in advance of adding new ones
Modified:
llvm/trunk/tools/llvm-objdump/ELFDump.cpp
Modified: llvm/trunk/tools/llvm-objdump/ELFDump.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-objdump/ELFDump.cpp?rev=290494&r1=290493&r2=290494&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-objdump/ELFDump.cpp (original)
+++ llvm/trunk/tools/llvm-objdump/ELFDump.cpp Sat Dec 24 08:53:45 2016
@@ -30,20 +30,20 @@ template <class ELFT> void printProgramH
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 ";
More information about the llvm-commits
mailing list