Reland "[llvm-readobj][MachO] Add option to sort the symbol table before dumping...
authorVy Nguyen <vyng@google.com>
Thu, 31 Mar 2022 13:36:10 +0000 (09:36 -0400)
committerVy Nguyen <vyng@google.com>
Thu, 31 Mar 2022 18:21:41 +0000 (14:21 -0400)
commit1ae449f9a33b9c8cc3bbf38013b24bd4e9e5bb27
treecaff71acad145b25803996d3fa82c48748e8d6f5
parent3a4ada699143ce4aa2efc7137f87308cfdabf682
Reland  "[llvm-readobj][MachO] Add option to sort the symbol table before dumping (MachO only, for now)."
    https://reviews.llvm.org/D116787

This reverts commit 33b3c86afab06ad61d46456c85c0b565cfff8287.

New change: fixed build failures:
 - in stabs-sorted:restore the the ERR-KEY statements, which were accidentally deleted during refactoring
 - in ObjDumper.h/MachODumper.cpp: refactor so that current dumpers which didn't provide an impl that accept a SymCom still works
llvm/docs/CommandGuide/llvm-readobj.rst
llvm/test/tools/llvm-readobj/MachO/stabs-sorted.yaml [new file with mode: 0644]
llvm/test/tools/llvm-readobj/sort-symbols.test [new file with mode: 0644]
llvm/tools/llvm-readobj/MachODumper.cpp
llvm/tools/llvm-readobj/ObjDumper.h
llvm/tools/llvm-readobj/Opts.td
llvm/tools/llvm-readobj/llvm-readobj.cpp
llvm/tools/llvm-readobj/llvm-readobj.h