]> granicus.if.org Git - llvm/commit
[llvm-symbolizer] Add `--output-style` switch.
authorIgor Kudrin <ikudrin@accesssoftek.com>
Thu, 4 Apr 2019 08:39:40 +0000 (08:39 +0000)
committerIgor Kudrin <ikudrin@accesssoftek.com>
Thu, 4 Apr 2019 08:39:40 +0000 (08:39 +0000)
commit10ceb1aee9480a15ef9f3033c22080a65b875d7b
tree2e91450701a3e93e95767804b288fa3f5e71aa0b
parent0f925da273a9d9f7806487bbf208f22eb37c0cd2
[llvm-symbolizer] Add `--output-style` switch.

In general, llvm-symbolizer follows the output style of GNU's addr2line.
However, there are still some differences; in particular, for a requested
address, llvm-symbolizer prints line and column, while addr2line prints
only the line number.

This patch adds a new switch to select the preferred style.

Differential Revision: https://reviews.llvm.org/D60190

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357675 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/Symbolize/DIPrinter.h
lib/DebugInfo/Symbolize/DIPrinter.cpp
test/tools/llvm-symbolizer/output-style.test [new file with mode: 0644]
tools/llvm-symbolizer/llvm-symbolizer.cpp