[all-commits] [llvm/llvm-project] a29a9a: [yaml2obj] Refactor command line parsing

Fangrui Song via All-commits all-commits at lists.llvm.org
Thu Feb 6 01:12:50 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a29a9a34f49fe674b259ef06a5044684401233a9
      https://github.com/llvm/llvm-project/commit/a29a9a34f49fe674b259ef06a5044684401233a9
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-02-06 (Thu, 06 Feb 2020)

  Changed paths:
    A llvm/test/tools/yaml2obj/help.test
    R llvm/test/tools/yaml2obj/invalid-output-file.yaml
    A llvm/test/tools/yaml2obj/output-file.yaml
    M llvm/tools/yaml2obj/yaml2obj.cpp

  Log Message:
  -----------
  [yaml2obj] Refactor command line parsing

* Hide unrelated options.
* Add "OVERVIEW: " to yaml2obj -h/--help.
* Place options under a yaml2obj category.
* Disallow -docnum. Currently -docnum is the only yaml2obj specific long option that is affected.
* Specify `cl::init("-")` and `cl::Prefix` for OutputFilename. The
  latter allows `-ofile`

Reviewed By: grimar, jhenderson

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




More information about the All-commits mailing list