aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/LLVMContext.cpp
diff options
context:
space:
mode:
authorJorge Gorbe Moya <jgorbe@google.com>2022-03-31 14:54:41 -0700
committerJorge Gorbe Moya <jgorbe@google.com>2022-03-31 14:54:41 -0700
commitfc7573f29c79a4bbcfc0d6d001b7c7ae9f1344c7 (patch)
treef0edf12cddc46c91583f81ac6c0cbd412fd0256e /llvm/lib/IR/LLVMContext.cpp
parentde4bcdc2baccc0ce478f2f34e201079102983a5b (diff)
downloadllvm-fc7573f29c79a4bbcfc0d6d001b7c7ae9f1344c7.zip
llvm-fc7573f29c79a4bbcfc0d6d001b7c7ae9f1344c7.tar.gz
llvm-fc7573f29c79a4bbcfc0d6d001b7c7ae9f1344c7.tar.bz2
Revert "[misexpect] Re-implement MisExpect Diagnostics"
This reverts commit 46774df307159444d65083c2fd82f8574f0ab1d9.
Diffstat (limited to 'llvm/lib/IR/LLVMContext.cpp')
-rw-r--r--llvm/lib/IR/LLVMContext.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/llvm/lib/IR/LLVMContext.cpp b/llvm/lib/IR/LLVMContext.cpp
index df4a007..f4e917c 100644
--- a/llvm/lib/IR/LLVMContext.cpp
+++ b/llvm/lib/IR/LLVMContext.cpp
@@ -138,22 +138,10 @@ bool LLVMContext::getDiagnosticsHotnessRequested() const {
void LLVMContext::setDiagnosticsHotnessThreshold(Optional<uint64_t> Threshold) {
pImpl->DiagnosticsHotnessThreshold = Threshold;
}
-void LLVMContext::setMisExpectWarningRequested(bool Requested) {
- pImpl->MisExpectWarningRequested = Requested;
-}
-bool LLVMContext::getMisExpectWarningRequested() const {
- return pImpl->MisExpectWarningRequested;
-}
+
uint64_t LLVMContext::getDiagnosticsHotnessThreshold() const {
return pImpl->DiagnosticsHotnessThreshold.getValueOr(UINT64_MAX);
}
-void LLVMContext::setDiagnosticsMisExpectTolerance(
- Optional<uint64_t> Tolerance) {
- pImpl->DiagnosticsMisExpectTolerance = Tolerance;
-}
-uint64_t LLVMContext::getDiagnosticsMisExpectTolerance() const {
- return pImpl->DiagnosticsMisExpectTolerance.getValueOr(0);
-}
bool LLVMContext::isDiagnosticsHotnessThresholdSetFromPSI() const {
return !pImpl->DiagnosticsHotnessThreshold.hasValue();