OSDN Git Service

[llvm-symbolizer] Add support for specifying addresses on command-line
authorJames Henderson <jh7370@my.bristol.ac.uk>
Thu, 10 Jan 2019 14:10:02 +0000 (14:10 +0000)
committerJames Henderson <jh7370@my.bristol.ac.uk>
Thu, 10 Jan 2019 14:10:02 +0000 (14:10 +0000)
commit267dc8d764fd79de2cdaff780c00559cd3b1e6b5
tree21c063d891982a592dc1de77a383e2e318dea1c0
parent437f3bdb2355b0f453a4b4824e4b74ed6b6a73a5
[llvm-symbolizer] Add support for specifying addresses on command-line

See https://bugs.llvm.org/show_bug.cgi?id=40070.

GNU addr2line accepts input addresses both on the command-line and via
stdin. llvm-symbolizer previously only supported the latter. This
change adds support for the former. As with addr2line, the new
behaviour is to only look for addresses on stdin if no positional
arguments were provided to llvm-symbolizer.

Reviewed by: ruiu

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350821 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-symbolizer/basic.s [new file with mode: 0644]
tools/llvm-symbolizer/llvm-symbolizer.cpp