]> granicus.if.org Git - llvm/commitdiff
Remove interface to get/set MaxFunctionCount
authorEaswaran Raman <eraman@google.com>
Mon, 20 Jun 2016 21:36:38 +0000 (21:36 +0000)
committerEaswaran Raman <eraman@google.com>
Mon, 20 Jun 2016 21:36:38 +0000 (21:36 +0000)
Differential revision: http://reviews.llvm.org/D19185

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273203 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/Module.h
lib/IR/Module.cpp

index 25585b0cb6a7acdaa7bd301baa2a76bd3749ad93..fd5303431ac8aafd919774e7094f3289d5c5ebcb 100644 (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);
 
index f229e2b3702717dc6add66c1d646fae8abaa9b13..ae81b25b95178b2ac7ee66ce35a241c41a36d139 100644 (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);
 }