[PATCH] D58173: [llvm-objcopy] Add --set-start, --change-start, --adjust-start

Jordan Rupprecht via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 21 19:40:45 PST 2019


rupprecht added a comment.

In D58173#1406185 <https://reviews.llvm.org/D58173#1406185>, @evgeny777 wrote:

> Isn't it an overkill to cover all possible misuses? This is a developer tool so far ...


Isn't clang just a developer tool? Why bother going through the trouble of implementing compiler warnings -- shouldn't good C++ devs know the spec by heart?

IMO, we should be setting the bar high for the quality of these tools. If this were just a random script that a handful of developers will share, I'd agree, but this is a tool that we should be encouraging broad adoption for. Also, in this case, I think it's just a couple lines to check, right? No fancy algorithms needed to check if two flags are being used.

  if (InputArgs.hasArg(OBJCOPY_set_start) && InputArgs.hasArg(OBJCOPY_change_start))
    error();


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58173/new/

https://reviews.llvm.org/D58173





More information about the llvm-commits mailing list