aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/LLVMContext.cpp
diff options
context:
space:
mode:
authorPaul Kirth <paulkirth@google.com>2022-03-17 23:54:26 +0000
committerPaul Kirth <paulkirth@google.com>2022-03-17 23:54:26 +0000
commit10866a1df4a82cdc54187330c509a2d46235455d (patch)
treedd8767f20c495191febb4a3d730e7af8b4c1fa4f /llvm/lib/IR/LLVMContext.cpp
parente7749d4713a5ec886011ceb0fc821c6723061724 (diff)
downloadllvm-10866a1df4a82cdc54187330c509a2d46235455d.zip
llvm-10866a1df4a82cdc54187330c509a2d46235455d.tar.gz
llvm-10866a1df4a82cdc54187330c509a2d46235455d.tar.bz2
Revert "[misexpect] Re-implement MisExpect Diagnostics"
This reverts commit e7749d4713a5ec886011ceb0fc821c6723061724.
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();