[all-commits] [llvm/llvm-project] 8f806d: [test] Avoid llvm-readelf/llvm-readobj one-dash lo...

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Jul 16 12:03:21 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8f806d5f5203e1e022eeaafc81f778717c62d250
      https://github.com/llvm/llvm-project/commit/8f806d5f5203e1e022eeaafc81f778717c62d250
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-07-16 (Fri, 16 Jul 2021)

  Changed paths:
    M compiler-rt/test/asan/TestCases/Windows/delay_dbghelp.cpp
    M lld/test/ELF/ppc64-toc-addis-nop-lqsq.s

  Log Message:
  -----------
  [test] Avoid llvm-readelf/llvm-readobj one-dash long options


  Commit: 3f9004c19c9b790afa58bc5ae22e9c854d2afed0
      https://github.com/llvm/llvm-project/commit/3f9004c19c9b790afa58bc5ae22e9c854d2afed0
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-07-16 (Fri, 16 Jul 2021)

  Changed paths:
    M llvm/tools/llvm-readobj/Opts.td

  Log Message:
  -----------
  [llvm-readelf/llvm-readobj] Remove one-dash long options

llvm-readelf is a user-facing tool which emulates GNU readelf. Remove one-dash
long options which are not recognized by GNU style `getopt_long`. This ensures
long options cannot collide with grouped short options.

Note: the documentation (D63719)/help messages have recommended the double-dash
forms since LLVM 9.0.0.
llvm-readobj is intended as an internal tool which has some flexibility.
llvm-readelf/llvm-readobj use the same option parsing code and llvm-readobj's
one-dash long options aren't used after test migration.

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


Compare: https://github.com/llvm/llvm-project/compare/58e5e504f533...3f9004c19c9b


More information about the All-commits mailing list