This is an archive of the discontinued LLVM Phabricator instance.

[llvm-readobj] set --elf-cg-profile as alias of --cg-profile
ClosedPublic

Authored by zequanwu on Jun 15 2020, 10:26 AM.

Details

Summary

Rename --elf-cg-profile to --cg-profile and keep --elf-cg-profile as an alias of --cg-profile.

Diff Detail

Event Timeline

zequanwu created this revision.Jun 15 2020, 10:26 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 15 2020, 10:27 AM

You can click Edit Related Revisions and assign a parent revision for a child revision.

Since --cg-profile is going to be the canonical option name, please rename --elf-cg-profile in tests. Keep one to demonstrate that it is an alias for --cg-profile.

zequanwu updated this revision to Diff 270811.Jun 15 2020, 11:42 AM
This comment was removed by zequanwu.
zequanwu removed a subscriber: MaskRay.
zequanwu updated this revision to Diff 270812.Jun 15 2020, 11:45 AM

Rename --elf-cg-profile to --cg-profile in tests and docs.
Keep --elf-cg-profile in test/tools/llvm-readobj/ELF/call-graph-profile.test for demonstration purpose.

zequanwu edited the summary of this revision. (Show Details)Jun 15 2020, 5:20 PM
zequanwu added a reviewer: hans.

You can click Edit Related Revisions and assign a parent revision for a child revision.

Also, if you mention in the patch description (possibly also comments) "Depends on DXXXXX" it will automatically create the link.

Since --cg-profile is going to be the canonical option name, please rename --elf-cg-profile in tests. Keep one to demonstrate that it is an alias for --cg-profile.

I'd expect to see test\tools\llvm-readobj\ELF\call-graph-profile.test to be updated to use the new option, with two additional invocations using the old option (one each for llvm-readobj and llvm-readelf). Looks good apart from that.

zequanwu updated this revision to Diff 271126.Jun 16 2020, 9:46 AM

Address comment.

MaskRay accepted this revision.Jun 16 2020, 2:42 PM

LGTM. Please wait for @jhenderson's approval.

This revision is now accepted and ready to land.Jun 16 2020, 2:42 PM
jhenderson accepted this revision.Jun 16 2020, 11:59 PM

LGTM too. Thanks!

This revision was automatically updated to reflect the committed changes.