[llvm-otool] Make `llvm-otool -l` output compatible with otool for LC_BUILD_VERSION
authorNico Weber <thakis@chromium.org>
Wed, 4 May 2022 13:08:58 +0000 (09:08 -0400)
committerNico Weber <thakis@chromium.org>
Wed, 4 May 2022 23:19:09 +0000 (19:19 -0400)
commitddef1ed4e7932e09c9316681779509f980ba8d13
treeefe7af03212c79ebcf3660882357448efdfcb7fe
parentef849f50481667a9e1d8261811345cefa53315eb
[llvm-otool] Make `llvm-otool -l` output compatible with otool for LC_BUILD_VERSION

Namely, only "symbolize" platform and tool names if `-v` is passed.

(`llvm-otool -lv` output still isn't quite the same as `otool -lv` output, but
`-v` output is arguably for consumption by humans, so I'm not changing that
at this point. Someone else could change it if it was important to them.)

Differential Revision: https://reviews.llvm.org/D124920
llvm/test/tools/llvm-objdump/MachO/build-version.yaml
llvm/tools/llvm-objdump/MachODump.cpp