[PATCH] D52124: [ELF][test] Use llvm-readelf's short option -r instead of -relocations and remove ignored --wide

Fāng-ruì Sòng via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 14 16:50:44 PDT 2018


-r is a cl::alias option

https://github.com/llvm-mirror/llvm/tree/master/tools/llvm-readobj/llvm-readobj.cpp#L98

  cl::opt<bool> Relocations("relocations",
    cl::desc("Display the relocation entries in the file"));
  cl::alias RelocationsShort("r",
    cl::desc("Alias for --relocations"),
    cl::aliasopt(Relocations));

and is by default hidden ( https://github.com/llvm-mirror/llvm/tree/master/include/llvm/Support/CommandLine.h#L1739 )

On 2018-09-14, Rui Ueyama via Phabricator wrote:
>ruiu added a comment.
>
>Is `-r` a hidden option of llvm-readelf? `llvm-readelf --help` doesn't show that option.
>
>
>Repository:
>  rLLD LLVM Linker
>
>https://reviews.llvm.org/D52124
>
>
>

-- 
宋方睿


More information about the llvm-commits mailing list