aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Module.cpp
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 /llvm/lib/IR/Module.cpp
parent0222adbcd25779a156399bcc16fde9f6d083a809 (diff)
downloadllvm-8b65e86661fac97443299b5074abda165b87c760.zip
llvm-8b65e86661fac97443299b5074abda165b87c760.tar.gz
llvm-8b65e86661fac97443299b5074abda165b87c760.tar.bz2
Remove interface to get/set MaxFunctionCount
Differential revision: http://reviews.llvm.org/D19185 llvm-svn: 273203
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
-rw-r--r--llvm/lib/IR/Module.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/llvm/lib/IR/Module.cpp b/llvm/lib/IR/Module.cpp
index f229e2b..ae81b25 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);
}