From: Brian Gesiak Date: Fri, 30 Jun 2017 19:56:55 +0000 (+0000) Subject: [ORE] Remove old "diagnostic hotness" spelling X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a6974a4e4466d55801a1f3e31e2088469d3e7aeb;p=llvm [ORE] Remove old "diagnostic hotness" spelling Summary: Depends on https://reviews.llvm.org/D34865. With the Clang uses of the old spelling having been removed in https://reviews.llvm.org/D34865, get rid of the old "diagnostic hotness" spellings in favor of the new "diagnostics hotness". Reviewers: anemet, davidxl Reviewed By: anemet Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D34866 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306866 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/IR/LLVMContext.h b/include/llvm/IR/LLVMContext.h index ac805201c88..c8ff90e3b08 100644 --- a/include/llvm/IR/LLVMContext.h +++ b/include/llvm/IR/LLVMContext.h @@ -186,15 +186,6 @@ public: /// setDiagnosticContext. void *getDiagnosticContext() const; - /// \brief Return if a code hotness metric should be included in optimization - /// diagnostics. This method is deprecated; use getDiagnosticsHotnessRequested - /// instead. - bool getDiagnosticHotnessRequested() const; - /// \brief Set if a code hotness metric should be included in optimization - /// diagnostics. This method is deprecated; use setDiagnosticsHotnessRequested - /// instead. - void setDiagnosticHotnessRequested(bool Requested); - /// \brief Return if a code hotness metric should be included in optimization /// diagnostics. bool getDiagnosticsHotnessRequested() const; diff --git a/lib/IR/LLVMContext.cpp b/lib/IR/LLVMContext.cpp index b64674fc55c..ed3f10601bf 100644 --- a/lib/IR/LLVMContext.cpp +++ b/lib/IR/LLVMContext.cpp @@ -125,13 +125,6 @@ void LLVMContext::setDiagnosticHandler(DiagnosticHandlerTy DiagnosticHandler, pImpl->RespectDiagnosticFilters = RespectFilters; } -void LLVMContext::setDiagnosticHotnessRequested(bool Requested) { - pImpl->DiagnosticsHotnessRequested = Requested; -} -bool LLVMContext::getDiagnosticHotnessRequested() const { - return pImpl->DiagnosticsHotnessRequested; -} - void LLVMContext::setDiagnosticsHotnessRequested(bool Requested) { pImpl->DiagnosticsHotnessRequested = Requested; }