summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/include/llvm/IR/Module.h4
-rw-r--r--llvm/include/llvm/ProfileData/InstrProfReader.h3
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());
OpenPOWER on IntegriCloud