This is an archive of the discontinued LLVM Phabricator instance.

[NFC][COFF] Refine access specifiers for WinCOFFObjectWriter
ClosedPublic

Authored by HaohaiWen on Jun 5 2023, 11:00 PM.

Details

Summary

Set public specifiers only for constructor and inherited methods from
MCObjectWriter and leave others as private. Also change the order of
MCObjectWriter methods' definition according to it's declaration order.

Diff Detail

Event Timeline

HaohaiWen created this revision.Jun 5 2023, 11:00 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 5 2023, 11:00 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
HaohaiWen requested review of this revision.Jun 5 2023, 11:00 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 5 2023, 11:00 PM
HaohaiWen updated this revision to Diff 528691.Jun 5 2023, 11:09 PM

Update getTime position

skan added a comment.Jun 5 2023, 11:16 PM

Add a summary about what's refined?

HaohaiWen updated this revision to Diff 528694.Jun 5 2023, 11:25 PM

Add summary

HaohaiWen edited the summary of this revision. (Show Details)Jun 5 2023, 11:26 PM
HaohaiWen edited the summary of this revision. (Show Details)
skan added a comment.Jun 6 2023, 3:09 AM

What's the motivation of reordering MCObjectWriter methods?

What's the motivation of reordering MCObjectWriter methods?

I'm planning to split WinCOFFObjectWriter to WinCOFFWriter (like ELFWriter and ELFObjectWriter). Most of methods will be moved to WinCOFFWriter. This reordering will help to reduce diff in next patch.

skan accepted this revision.Jun 6 2023, 3:27 AM

LGTM

This revision is now accepted and ready to land.Jun 6 2023, 3:27 AM