This is an archive of the discontinued LLVM Phabricator instance.

[NFC][llvm-dwp] Switch from llvm::cl to OptTable
ClosedPublic

Authored by avillega on Jul 6 2023, 12:23 PM.

Details

Summary

Switch the parse of command line options from llvm::cl to OptTable.

The motivation for this change is to continue adding llvm based tools
to the llvm driver multicall. For more information about the proposal
and motivation, please see https://discourse.llvm.org/t/rfc-llvm-busybox-proposal/58494

Diff Detail

Event Timeline

avillega created this revision.Jul 6 2023, 12:23 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 6 2023, 12:23 PM
avillega requested review of this revision.Jul 6 2023, 12:23 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 6 2023, 12:23 PM
avillega updated this revision to Diff 537907.Jul 6 2023, 3:34 PM

Rebase change.

abrachet added inline comments.Jul 10 2023, 5:11 AM
llvm/tools/llvm-dwp/Opts.td
14

Add newline

llvm/tools/llvm-dwp/llvm-dwp.cpp
80

Looks like this is never written to

avillega updated this revision to Diff 538725.Jul 10 2023, 10:30 AM

Fix review comments.

avillega marked an inline comment as done.Jul 10 2023, 10:30 AM
avillega added inline comments.
llvm/tools/llvm-dwp/llvm-dwp.cpp
80

Thanks, nice catch.

abrachet accepted this revision.Jul 10 2023, 10:34 AM
This revision is now accepted and ready to land.Jul 10 2023, 10:34 AM
avillega marked 2 inline comments as done.Jul 10 2023, 10:50 AM
This revision was automatically updated to reflect the committed changes.