diff options
author | Keith Smiley <keithbsmiley@gmail.com> | 2022-02-04 18:07:12 -0800 |
---|---|---|
committer | Keith Smiley <keithbsmiley@gmail.com> | 2022-10-14 15:42:18 -0700 |
commit | bc99fd95e090a406a16fe431047d8b7d59af7dc0 (patch) | |
tree | e8e8d6f5c66f648c06101a7d52261fccae4bce72 /llvm/tools/llvm-objdump/llvm-objdump.h | |
parent | c2d209476c494b3b3194e80bcd3062444eb41993 (diff) | |
download | llvm-bc99fd95e090a406a16fe431047d8b7d59af7dc0.zip llvm-bc99fd95e090a406a16fe431047d8b7d59af7dc0.tar.gz llvm-bc99fd95e090a406a16fe431047d8b7d59af7dc0.tar.bz2 |
[llvm-objdump/mac] Add new function starts print mode
This updates the `--function-starts` argument to now accept 3 different
modes, `addrs` for just printing the addresses of the function starts
(previous behavior), `names` for just printing the names of the function
starts, and `both` to print them both side by side.
In general if you're debugging function starts issues it's useful to see
the symbol name alongside the address. This also mirrors Apple's
`dyldinfo -function_starts` command which prints both.
Differential Revision: https://reviews.llvm.org/D119050
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.h')
-rw-r--r-- | llvm/tools/llvm-objdump/llvm-objdump.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/tools/llvm-objdump/llvm-objdump.h b/llvm/tools/llvm-objdump/llvm-objdump.h index c64c042d..efb4451 100644 --- a/llvm/tools/llvm-objdump/llvm-objdump.h +++ b/llvm/tools/llvm-objdump/llvm-objdump.h @@ -20,6 +20,10 @@ namespace llvm { class StringRef; class Twine; +namespace opt { +class Arg; +} // namespace opt + namespace object { class RelocationRef; struct VersionEntry; @@ -146,6 +150,8 @@ T unwrapOrError(Expected<T> EO, Ts &&... Args) { reportError(EO.takeError(), std::forward<Ts>(Args)...); } +void invalidArgValue(const opt::Arg *A); + std::string getFileNameForError(const object::Archive::Child &C, unsigned Index); SymbolInfoTy createSymbolInfo(const object::ObjectFile &Obj, |