diff options
| author | Rong Xu <xur@google.com> | 2019-03-01 18:36:24 +0000 |
|---|---|---|
| committer | Rong Xu <xur@google.com> | 2019-03-01 18:36:24 +0000 |
| commit | 06ed38517e68876277d4accbcc538a016c58f9a8 (patch) | |
| tree | b159643ee27f9d1805109dcc3cbe69e2923d58af | |
| parent | 1648f95eb15ddd6c9dd45e827c40577263259871 (diff) | |
| download | bcm5719-llvm-06ed38517e68876277d4accbcc538a016c58f9a8.tar.gz bcm5719-llvm-06ed38517e68876277d4accbcc538a016c58f9a8.zip | |
[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
| -rw-r--r-- | llvm/include/llvm/IR/Module.h | 4 | ||||
| -rw-r--r-- | llvm/include/llvm/ProfileData/InstrProfReader.h | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/llvm/include/llvm/IR/Module.h b/llvm/include/llvm/IR/Module.h index 40c0db5e00c..f458680cfe1 100644 --- a/llvm/include/llvm/IR/Module.h +++ b/llvm/include/llvm/IR/Module.h @@ -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. diff --git a/llvm/include/llvm/ProfileData/InstrProfReader.h b/llvm/include/llvm/ProfileData/InstrProfReader.h index 25f9df03321..0aaa7cfff4f 100644 --- a/llvm/include/llvm/ProfileData/InstrProfReader.h +++ b/llvm/include/llvm/ProfileData/InstrProfReader.h @@ -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()); |

