diff options
author | gulfemsavrun <gulfem@google.com> | 2025-07-21 12:51:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-21 12:51:27 +0300 |
commit | e94bc16b8e12a64ff28aedc58ee6e95e1f9d6f4b (patch) | |
tree | bd191ea217fe40e652e01c144e0c9a9f7c81ccc4 /llvm/tools/llvm-objdump/llvm-objdump.h | |
parent | 9311f3814bf139aee08014dbeeaa4c59ac2ae6f8 (diff) | |
download | llvm-e94bc16b8e12a64ff28aedc58ee6e95e1f9d6f4b.zip llvm-e94bc16b8e12a64ff28aedc58ee6e95e1f9d6f4b.tar.gz llvm-e94bc16b8e12a64ff28aedc58ee6e95e1f9d6f4b.tar.bz2 |
[llvm-objdump] Add inlined function display support (#142246)
This patch adds the support for displaying inlined functions into
llvm-objdump.
1) It extends the source variable display
support for inlined functions both for ascii and unicode formats.
2) It also introduces a new format called limits-only that only prints a
line for the start and end of an inlined function without line-drawing
characters.
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.h')
-rw-r--r-- | llvm/tools/llvm-objdump/llvm-objdump.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/tools/llvm-objdump/llvm-objdump.h b/llvm/tools/llvm-objdump/llvm-objdump.h index 25d9c1e..ce06429 100644 --- a/llvm/tools/llvm-objdump/llvm-objdump.h +++ b/llvm/tools/llvm-objdump/llvm-objdump.h @@ -40,11 +40,12 @@ class XCOFFObjectFile; namespace objdump { -enum DebugVarsFormat { DVDisabled, DVUnicode, DVASCII, DVInvalid }; +enum DebugFormat { DFASCII, DFDisabled, DFInvalid, DFLimitsOnly, DFUnicode }; extern bool ArchiveHeaders; extern int DbgIndent; -extern DebugVarsFormat DbgVariables; +extern DebugFormat DbgVariables; +extern DebugFormat DbgInlinedFunctions; extern bool Demangle; extern bool Disassemble; extern bool DisassembleAll; @@ -126,7 +127,7 @@ void printSectionContents(const object::ObjectFile *O); void reportWarning(const Twine &Message, StringRef File); template <typename T, typename... Ts> -T unwrapOrError(Expected<T> EO, Ts &&... Args) { +T unwrapOrError(Expected<T> EO, Ts &&...Args) { if (EO) return std::move(*EO); reportError(EO.takeError(), std::forward<Ts>(Args)...); |