This is an archive of the discontinued LLVM Phabricator instance.

[BOLT] Modify the print option to a meaningful value
ClosedPublic

Authored by hzq on Jan 2 2023, 8:39 AM.

Details

Summary

Using the option -print-sorted-by=. cause to core dump, so change to a legal value.

Diff Detail

Event Timeline

hzq created this revision.Jan 2 2023, 8:39 AM
Herald added a reviewer: Amir. · View Herald Transcript
Herald added a reviewer: maksfb. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
hzq updated this revision to Diff 485869.Jan 2 2023, 8:45 AM
This comment was removed by hzq.
hzq updated this revision to Diff 486265.Jan 4 2023, 6:26 AM

Update commit info.

hzq edited the summary of this revision. (Show Details)Jan 4 2023, 6:47 AM
hzq published this revision for review.Jan 4 2023, 10:32 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 4 2023, 10:32 PM
maksfb accepted this revision.Jan 5 2023, 3:00 PM

Thanks for the fix. It's better to not have this last option, but at the moment I can't think of a trivial way to make it happen.

This revision is now accepted and ready to land.Jan 5 2023, 3:00 PM
hzq added a comment.Jan 5 2023, 5:55 PM

Thanks for the fix. It's better to not have this last option, but at the moment I can't think of a trivial way to make it happen.

Yes, that's the simplest solution I can think of, otherwise, we'll have to refactor the macro's usage. By the way, I don't have commit access, can you help with it?

maksfb added a comment.Jan 7 2023, 6:08 PM

I was thinking about something along these lines: https://reviews.llvm.org/D141209

hzq added a comment.Jan 8 2023, 2:56 AM

I was thinking about something along these lines: https://reviews.llvm.org/D141209

Of course, this change is better, if the build problem is solved smoothly. Otherwise, I think the it's not necessary to refactor for this little problem.

This revision was automatically updated to reflect the committed changes.