This is an archive of the discontinued LLVM Phabricator instance.

[llvm-profgen] Remove CommaSeparated option from perf file cl
ClosedPublic

Authored by wlei on Sep 20 2022, 9:38 AM.

Details

Summary

There could be comma in one perf file path, since at this point it only support one file as input, there is no need for the llvm::cl::MiscFlags::CommaSeparated option.

Diff Detail

Event Timeline

wlei created this revision.Sep 20 2022, 9:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 20 2022, 9:38 AM
Herald added subscribers: hoy, wenlei. · View Herald Transcript
wlei requested review of this revision.Sep 20 2022, 9:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 20 2022, 9:38 AM
wlei edited the summary of this revision. (Show Details)Sep 20 2022, 9:42 AM
wlei added reviewers: hoy, wenlei.
hoy accepted this revision.Sep 21 2022, 9:13 AM

LGTM.

BTW, if the file path contains a comma, does wrapping the file path under double quotes work?

This revision is now accepted and ready to land.Sep 21 2022, 9:13 AM
wlei added a comment.Sep 21 2022, 9:26 AM

LGTM.

BTW, if the file path contains a comma, does wrapping the file path under double quotes work?

Just tried, using double quotes still doesn't work. In my case, the perf data path is automatically generated, it still can't apply the double quotes.

wenlei accepted this revision.Sep 21 2022, 9:27 AM