This is an archive of the discontinued LLVM Phabricator instance.

[Driver] Refactor err_drv_unsupported_option_argument call sites to use llvm::opt::Arg::getSpelling
ClosedPublic

Authored by MaskRay on Nov 8 2022, 11:24 AM.

Details

Summary

For -foo=bar, getSpelling return -foo= which is exactly what we need from
the diagnostic. Drop - from the err_drv_unsupported_option_argument template.
This change makes -- long option diagnostics more convenient.

Diff Detail

Event Timeline

MaskRay created this revision.Nov 8 2022, 11:24 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptNov 8 2022, 11:24 AM
MaskRay requested review of this revision.Nov 8 2022, 11:24 AM
lenary accepted this revision.Nov 8 2022, 1:14 PM

Thanks for doing this cleanup!

This revision is now accepted and ready to land.Nov 8 2022, 1:14 PM