diff options
author | Paul Kirth <paulkirth@google.com> | 2022-03-29 06:20:30 +0000 |
---|---|---|
committer | Paul Kirth <paulkirth@google.com> | 2022-03-29 06:20:30 +0000 |
commit | 90cb325abda9c06a6381a74f0e43ca5bf7943a04 (patch) | |
tree | 8b9b375207dba483312be9497aa0b77bedc52150 /llvm/lib/IR/LLVMContext.cpp | |
parent | 6c77972bac7ce125110ed2baea9919fb6866db39 (diff) | |
download | llvm-90cb325abda9c06a6381a74f0e43ca5bf7943a04.zip llvm-90cb325abda9c06a6381a74f0e43ca5bf7943a04.tar.gz llvm-90cb325abda9c06a6381a74f0e43ca5bf7943a04.tar.bz2 |
Revert "[misexpect] Re-implement MisExpect Diagnostics"
This reverts commit 2add3fbd976d7b80a3a7fc14ef0deb9b1ca6beee.
Diffstat (limited to 'llvm/lib/IR/LLVMContext.cpp')
-rw-r--r-- | llvm/lib/IR/LLVMContext.cpp | 14 |
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(); |