[llvm-objdump][NFC] MachODump.cpp interface cleanup
authorHubert Tong <hubert.reinterpretcast@gmail.com>
Thu, 9 Apr 2020 19:32:09 +0000 (15:32 -0400)
committerHubert Tong <hubert.reinterpretcast@gmail.com>
Thu, 9 Apr 2020 19:35:33 +0000 (15:35 -0400)
commitc6f13ce580756da6d82497d84d277abdc5ab753c
tree34c514eaea0074a1587ab7e58c95ea5fa6f318c6
parent64868cbfcf7b56288973bb258fc47422bee46c15
[llvm-objdump][NFC] MachODump.cpp interface cleanup

Continuing from D77388, this patch moves interface declarations
associated with `MachODump.cpp` into the headers corresponding to the
file that defines the variable. At the same time, these externs are
moved into the `llvm::objdump` namespace. The externs defined in
`MachODump.cpp` that are not referenced outside of it are given internal
linkage.

This patch does not rename the external functions defined by
`MachODump.cpp` that are not clearly named as being specific to Mach-O.

Reviewed By: jhenderson, MaskRay

Differential Revision: https://reviews.llvm.org/D77730
llvm/tools/llvm-objdump/MachODump.cpp
llvm/tools/llvm-objdump/MachODump.h
llvm/tools/llvm-objdump/llvm-objdump.cpp
llvm/tools/llvm-objdump/llvm-objdump.h