[all-commits] [llvm/llvm-project] 593e19: [llvm-symbolizer] Switch command line parsing from...

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Aug 4 08:53:45 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 593e19629744d6c8ba45fe4bb78910cf653cd6a7
      https://github.com/llvm/llvm-project/commit/593e19629744d6c8ba45fe4bb78910cf653cd6a7
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-08-04 (Tue, 04 Aug 2020)

  Changed paths:
    M llvm/docs/CommandGuide/llvm-symbolizer.rst
    M llvm/include/llvm/Option/OptTable.h
    M llvm/include/llvm/Support/CommandLine.h
    M llvm/lib/Option/OptTable.cpp
    M llvm/lib/Support/CommandLine.cpp
    M llvm/test/DebugInfo/debuglineinfo-path.ll
    M llvm/test/tools/llvm-symbolizer/basic.s
    M llvm/test/tools/llvm-symbolizer/help.test
    M llvm/test/tools/llvm-symbolizer/output-style-inlined.test
    M llvm/test/tools/llvm-symbolizer/split-dwarf.test
    A llvm/test/tools/llvm-symbolizer/unknown-argument.test
    M llvm/test/tools/llvm-symbolizer/untag-addresses.test
    M llvm/tools/llvm-symbolizer/CMakeLists.txt
    A llvm/tools/llvm-symbolizer/Opts.td
    M llvm/tools/llvm-symbolizer/llvm-symbolizer.cpp

  Log Message:
  -----------
  [llvm-symbolizer] Switch command line parsing from llvm::cl to OptTable

for the advantage outlined by D83639 ([OptTable] Support grouped short options)

Some behavior changes:

* -i={0,false} is removed. Use --no-inlines instead.
* --demangle={0,false} is removed. Use --no-demangle instead
* -untag-addresses={0,false} is removed. Use --no-untag-addresses instead

Added a higher level API OptTable::parseArgs which handles optional
initial options populated from an environment variable, expands response
files recursively, and parses options.

Reviewed By: jhenderson

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




More information about the All-commits mailing list