[all-commits] [llvm/llvm-project] 0b7f12: [llvm-symbolizer] Add back --version and add a -v ...

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Aug 10 08:22:06 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0b7f12521966e04bd60df3e7a5327556631d2057
      https://github.com/llvm/llvm-project/commit/0b7f12521966e04bd60df3e7a5327556631d2057
  Author: Fangrui Song <i at maskray.me>
  Date:   2020-08-10 (Mon, 10 Aug 2020)

  Changed paths:
    M llvm/docs/CommandGuide/llvm-symbolizer.rst
    A llvm/test/tools/llvm-symbolizer/version.test
    M llvm/tools/llvm-symbolizer/Opts.td
    M llvm/tools/llvm-symbolizer/llvm-symbolizer.cpp

  Log Message:
  -----------
  [llvm-symbolizer] Add back --version and add a -v alias

The switch from llvm::cl to OptTable (D83530) dropped --version, which
is needed by some users.

This patch also adds a -v alias, which is available in GNU addr2line.

The version dumping is similar to llvm-objcopy --version (exotic):

```
llvm-symbolizer
LLVM (http://llvm.org/):
  LLVM version 12.0.0git
  Optimized build with assertions.
  Default target: x86_64-unknown-linux-gnu
  Host CPU: skylake-avx512
```

Reviewed By: dyung, jhenderson

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




More information about the All-commits mailing list