From 138eb763dc2653e8acd874915cc7fc6f7a9dd27b Mon Sep 17 00:00:00 2001 From: Brian Gesiak Date: Fri, 30 Jun 2017 19:56:55 +0000 Subject: [PATCH] [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 llvm-svn: 306866 --- include/llvm/IR/LLVMContext.h | 9 --------- lib/IR/LLVMContext.cpp | 7 ------- 2 files changed, 16 deletions(-) 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; }