1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

[PGO] Remove the default parameter in ProfileSummary API. NFC

Remove the default parameter in setProfileSummary() and getSummary().
This is a follow-up of r355131.

llvm-svn: 355216
This commit is contained in:
Rong Xu 2019-03-01 18:36:24 +00:00
parent 9f60919e09
commit b64a73cd99
2 changed files with 2 additions and 5 deletions

View File

@ -869,9 +869,7 @@ public:
/// @{
/// Attach profile summary metadata to this module.
// TODO: Remove the default paramter.
void setProfileSummary(Metadata *M,
ProfileSummary::Kind Kind = ProfileSummary::PSK_Instr);
void setProfileSummary(Metadata *M, ProfileSummary::Kind Kind);
/// Returns profile summary metadata. When IsCS is true, use the context
/// sensitive profile summary.

View File

@ -501,8 +501,7 @@ public:
/// Return the profile summary.
/// \c UseCS indicates whether to use the context-sensitive summary.
// TODO: removed the defualt parameter.
ProfileSummary &getSummary(bool UseCS = false) {
ProfileSummary &getSummary(bool UseCS) {
if (UseCS) {
assert(CS_Summary && "No context sensitive summary");
return *(CS_Summary.get());