[PATCH] D66414: [llvm-objdump] Delete argv[0] from error messages

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 19 05:38:17 PDT 2019


MaskRay created this revision.
MaskRay added reviewers: grimar, jhenderson, rupprecht.
Herald added a reviewer: alexshap.
Herald added subscribers: llvm-commits, seiya.
Herald added a project: LLVM.

Currently we report

  ${argv[0]}: error: ...

GNU objdump does not print ` error:`

  ${argv[0]}: ...

`error: ` is useful, but repeating argv[0] does not provide lots of value. So switch to:

  error: ...

This is also consistent with llvm-objcopy and llvm-readobj.


Repository:
  rL LLVM

https://reviews.llvm.org/D66414

Files:
  tools/llvm-objdump/llvm-objdump.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66414.215864.patch
Type: text/x-patch
Size: 4188 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190819/27081048/attachment.bin>


More information about the llvm-commits mailing list