This is an archive of the discontinued LLVM Phabricator instance.

[SampleFDO] Extract the code calling each section reader to addOneSection
ClosedPublic

Authored by wmi on Aug 23 2019, 5:09 PM.

Details

Summary

This is a followup of https://reviews.llvm.org/D66513. I just realize I should put the code calling each section reader into a separate function (I name it addOneSection), so SampleProfileExtBinaryReader can override it. Otherwise, the base class SampleProfileExtBinaryBaseReader will need to be aware of all different kinds of section readers. That is not right.

Diff Detail

Event Timeline

wmi created this revision.Aug 23 2019, 5:09 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 23 2019, 5:09 PM
davidxl accepted this revision.Aug 24 2019, 9:18 AM

lgtm

This revision is now accepted and ready to land.Aug 24 2019, 9:18 AM
This revision was automatically updated to reflect the committed changes.