| 592 | } |
| 593 | |
| 594 | void SampleProfileReaderCompactBinary::collectFuncsToUse(const Module &M) { |
| 595 | FuncsToUse.clear(); |
| 596 | for (auto &F : M) { |
| 597 | StringRef Fname = F.getName().split('.').first; |
| 598 | FuncsToUse.insert(Fname); |
| 599 | } |
| 600 | } |
| 601 | |
| 602 | std::error_code SampleProfileReaderBinary::readSummaryEntry( |
| 603 | std::vector<ProfileSummaryEntry> &Entries) { |