mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-03 17:31:50 +00:00
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:
parent
bdba755f85
commit
7be6f15432
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user