summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEaswaran Raman <eraman@google.com>2016-06-20 21:36:38 +0000
committerEaswaran Raman <eraman@google.com>2016-06-20 21:36:38 +0000
commit8b65e86661fac97443299b5074abda165b87c760 (patch)
treeca33bfe6530704b40d04487b5e1186dade4373b9
parent0222adbcd25779a156399bcc16fde9f6d083a809 (diff)
downloadbcm5719-llvm-8b65e86661fac97443299b5074abda165b87c760.tar.gz
bcm5719-llvm-8b65e86661fac97443299b5074abda165b87c760.zip
Remove interface to get/set MaxFunctionCount
Differential revision: http://reviews.llvm.org/D19185 llvm-svn: 273203
-rw-r--r--llvm/include/llvm/IR/Module.h6
-rw-r--r--llvm/lib/IR/Module.cpp12
2 files changed, 0 insertions, 18 deletions
diff --git a/llvm/include/llvm/IR/Module.h b/llvm/include/llvm/IR/Module.h
index 25585b0cb6a..fd5303431ac 100644
--- a/llvm/include/llvm/IR/Module.h
+++ b/llvm/include/llvm/IR/Module.h
@@ -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);
diff --git a/llvm/lib/IR/Module.cpp b/llvm/lib/IR/Module.cpp
index f229e2b3702..ae81b25b951 100644
--- a/llvm/lib/IR/Module.cpp
+++ b/llvm/lib/IR/Module.cpp
@@ -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);
}
OpenPOWER on IntegriCloud