[llvm-objdump] Demangle C++ Symbols in branch and call targets
authorMarkus Böck <markus.boeck02@gmail.com>
Sat, 18 Apr 2020 15:23:37 +0000 (08:23 -0700)
committerFangrui Song <maskray@google.com>
Sat, 18 Apr 2020 15:30:50 +0000 (08:30 -0700)
commitcacf1b5093279ae2aaa695d3eb5f0c116d0746ea
tree22e83c1ad31a0b8aeaf1a3b30478d667c77233e0
parent5eb8d45ab5b85cb3a2edfe995cbf1d4b1beae462
[llvm-objdump] Demangle C++ Symbols in branch and call targets

Currently C++ symbols are demangled in the symbol table as well as in
the disassembly and relocations. This patch adds demangling of C++
symbols in targets of calls and branches making it easier to decipher
control flow in disassembly. This also matches up with GNUobjdump's
behavior

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D77957
llvm/test/tools/llvm-objdump/X86/demangle.s
llvm/tools/llvm-objdump/llvm-objdump.cpp