This is an archive of the discontinued LLVM Phabricator instance.

This change adds an API to allow setting the flag to indicate that the profile data has been dumped to the file.
ClosedPublic

Authored by liaoyuke on May 17 2019, 1:26 PM.

Event Timeline

liaoyuke created this revision.May 17 2019, 1:26 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMay 17 2019, 1:26 PM
Herald added subscribers: llvm-commits, Restricted Project. · View Herald Transcript
liaoyuke added a subscriber: sajjadm.

Please take a look. Thank you very much!

The change looks good to me, with one minor edit requested.

compiler-rt/lib/profile/InstrProfiling.c
39

I think it's better to call lprofSetProfileDumped here, just to make sure we keep the implementation at one place, i.e. inside internal lprofSetProfileDumped function (even though it's exported as well).

liaoyuke updated this revision to Diff 200339.May 20 2019, 11:40 AM
  • Use lprofSetProfileDumped
liaoyuke marked an inline comment as done.May 20 2019, 11:41 AM
davidxl accepted this revision.May 20 2019, 12:14 PM
davidxl added a subscriber: davidxl.

lgtm

This revision is now accepted and ready to land.May 20 2019, 12:14 PM
Dor1s accepted this revision.May 20 2019, 12:23 PM
Dor1s edited the summary of this revision. (Show Details)
Dor1s updated this revision to Diff 200351.May 20 2019, 12:58 PM

Getting ready to commit

This revision was automatically updated to reflect the committed changes.