This is an archive of the discontinued LLVM Phabricator instance.

[llvm-profdata][NFC] ProfileReader cleanup - 4
AbandonedPublic

Authored by huangjd on Apr 26 2023, 1:42 PM.

Details

Summary

This cleanup simply rearrange the order of class members and methods so that they appear roughtly in logical order as the profile reader invokes them while reading a profile. There is no code change

Diff Detail

Event Timeline

huangjd created this revision.Apr 26 2023, 1:42 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 26 2023, 1:42 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
huangjd requested review of this revision.Apr 26 2023, 1:42 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 26 2023, 1:42 PM

I suggest limiting the clean ups to declarations and simple function definitions such as readHeader, readMagic or other small wrapper functions. For large function definitions, keep the original order (to make future git blame easier).