llvm-project
83682df0 - Use const ProfileSymbolList in SampleProfileLoader and SampleProfileMatcher.

Commit
1 day ago
Use const ProfileSymbolList in SampleProfileLoader and SampleProfileMatcher. Neither class mutates the symbol list. Making it const lets SampleProfileLoader switch to SampleProfileReader::takeSharedProfileSymbolList(), which returns a const pointer so a SharedSampleProfile can share it across parallel modules.
Author
Committer
Parents
Loading