Remove interface to get/set MaxFunctionCount

Differential revision: http://reviews.llvm.org/D19185


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273203 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Easwaran Raman 2016-06-20 21:36:38 +00:00
parent bdba755f85
commit 7be6f15432
2 changed files with 0 additions and 18 deletions

View File

@ -746,12 +746,6 @@ public:
/// @name Utility functions for querying and setting PGO summary
/// @{
/// \brief Set maximum function count in PGO mode
void setMaximumFunctionCount(uint64_t);
/// \brief Returns maximum function count in PGO mode
Optional<uint64_t> getMaximumFunctionCount();
/// \brief Attach profile summary metadata to this module.
void setProfileSummary(Metadata *M);

View File

@ -511,18 +511,6 @@ void Module::setPIELevel(PIELevel::Level PL) {
addModuleFlag(ModFlagBehavior::Error, "PIE Level", PL);
}
void Module::setMaximumFunctionCount(uint64_t Count) {
addModuleFlag(ModFlagBehavior::Error, "MaxFunctionCount", Count);
}
Optional<uint64_t> Module::getMaximumFunctionCount() {
auto *Val =
cast_or_null<ConstantAsMetadata>(getModuleFlag("MaxFunctionCount"));
if (!Val)
return None;
return cast<ConstantInt>(Val->getValue())->getZExtValue();
}
void Module::setProfileSummary(Metadata *M) {
addModuleFlag(ModFlagBehavior::Error, "ProfileSummary", M);
}