This is an archive of the discontinued LLVM Phabricator instance.

[Driver] Clean up some Separate form options
ClosedPublic

Authored by MaskRay on Feb 17 2021, 11:27 AM.

Details

Summary

Drop the Separate form of -fmodule-name X, -fprofile-remapping-file X, and -frewrite-map-file X.
To the best of my knowledge they are not used. Their conventional Joined forms (-fFOO=) should be used instead.

-fdebug-compilation-dir X is used in several places, e.g. chromium/infra/goma.
It is also advertised in http://blog.llvm.org/2019/11/deterministic-builds-with-clang-and-lld.html
(-fdebug-compilation-dir=X` was added in 10.0.0: 44e0daf16e6985eb44ea9a629402852dbff9cb0b)
So we keep it but make the EQ form canonical and the Separate form an alias.

Diff Detail

Event Timeline

MaskRay created this revision.Feb 17 2021, 11:27 AM
MaskRay requested review of this revision.Feb 17 2021, 11:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 17 2021, 11:27 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
MaskRay edited the summary of this revision. (Show Details)Feb 17 2021, 11:30 AM
thakis accepted this revision.Feb 17 2021, 12:07 PM
thakis added inline comments.
clang/include/clang/Driver/Options.td
1101–1104

Should the help text move the the now-canonical _EQ form?

This revision is now accepted and ready to land.Feb 17 2021, 12:07 PM
MaskRay updated this revision to Diff 324390.Feb 17 2021, 12:21 PM

Move HelpText to EQ.

This revision was landed with ongoing or failed builds.Feb 17 2021, 1:49 PM
This revision was automatically updated to reflect the committed changes.
clang/test/Driver/clang_f_opts.c