This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Change the return type of getStreamer() to support the use of overloading and other functions in RISCVELFStreamer.
ClosedPublic

Authored by LiDongjin on Nov 22 2022, 7:30 AM.

Details

Summary

Change the return type of getStreamer() to support the use of overloading and other functions in RISCVELFStreamer.
In the process of implementing mapping symbols, the non-overloaded method in RISCVELFStreamer cannot be obtained through getStreamer().
Therefore, changing the return value of getStreamer() is beneficial to the subsequent support for mapping symbols.
https://reviews.llvm.org/D137417

Diff Detail

Event Timeline

LiDongjin created this revision.Nov 22 2022, 7:30 AM
Herald added a project: Restricted Project. · View Herald Transcript
LiDongjin requested review of this revision.Nov 22 2022, 7:30 AM
gkistanova resigned from this revision.Dec 14 2022, 6:28 PM

I don't think I'm a good reviewer for this patch.

LiDongjin updated this revision to Diff 487052.Jan 6 2023, 10:58 PM
asb accepted this revision.Jan 9 2023, 3:52 AM

LGTM. Would have been easier to review if a separate NFC commit did the change putting the RISCVELFStreamer declaration in RISCVELFStreamer.h.

The change is simple enough I don't feel I need to insist on splitting it up prior to committing (other reviewers might feel differently though). If not splitting, please update the commit description to note how the RISCVELFStreamer declaration was moved.

This revision is now accepted and ready to land.Jan 9 2023, 3:52 AM
This revision was landed with ongoing or failed builds.Jan 12 2023, 7:50 PM
This revision was automatically updated to reflect the committed changes.