From b4e64a77d3f7c410e0548b659e61ce0d1ca54f08 Mon Sep 17 00:00:00 2001 From: Adam Nemet Date: Tue, 27 Sep 2016 22:19:29 +0000 Subject: [PATCH] Shorten DiagnosticInfoOptimizationRemark* to OptimizationRemark*. NFC With the new streaming interface in LLVM, these class names need to be typed a lot and it's way too looong. llvm-svn: 282545 --- clang/lib/CodeGen/CodeGenAction.cpp | 36 +++++++++++++++--------------------- 1 file changed, 15 insertions(+), 21 deletions(-) diff --git a/clang/lib/CodeGen/CodeGenAction.cpp b/clang/lib/CodeGen/CodeGenAction.cpp index f79ca7f..d09e7b0 100644 --- a/clang/lib/CodeGen/CodeGenAction.cpp +++ b/clang/lib/CodeGen/CodeGenAction.cpp @@ -260,16 +260,13 @@ namespace clang { /// them. void EmitOptimizationMessage(const llvm::DiagnosticInfoOptimizationBase &D, unsigned DiagID); - void - OptimizationRemarkHandler(const llvm::DiagnosticInfoOptimizationRemark &D); + void OptimizationRemarkHandler(const llvm::OptimizationRemark &D); + void OptimizationRemarkHandler(const llvm::OptimizationRemarkMissed &D); + void OptimizationRemarkHandler(const llvm::OptimizationRemarkAnalysis &D); void OptimizationRemarkHandler( - const llvm::DiagnosticInfoOptimizationRemarkMissed &D); + const llvm::OptimizationRemarkAnalysisFPCommute &D); void OptimizationRemarkHandler( - const llvm::DiagnosticInfoOptimizationRemarkAnalysis &D); - void OptimizationRemarkHandler( - const llvm::DiagnosticInfoOptimizationRemarkAnalysisFPCommute &D); - void OptimizationRemarkHandler( - const llvm::DiagnosticInfoOptimizationRemarkAnalysisAliasing &D); + const llvm::OptimizationRemarkAnalysisAliasing &D); void OptimizationFailureHandler( const llvm::DiagnosticInfoOptimizationFailure &D); }; @@ -533,7 +530,7 @@ void BackendConsumer::EmitOptimizationMessage( } void BackendConsumer::OptimizationRemarkHandler( - const llvm::DiagnosticInfoOptimizationRemark &D) { + const llvm::OptimizationRemark &D) { // Optimization remarks are active only if the -Rpass flag has a regular // expression that matches the name of the pass name in \p D. if (CodeGenOpts.OptimizationRemarkPattern && @@ -542,7 +539,7 @@ void BackendConsumer::OptimizationRemarkHandler( } void BackendConsumer::OptimizationRemarkHandler( - const llvm::DiagnosticInfoOptimizationRemarkMissed &D) { + const llvm::OptimizationRemarkMissed &D) { // Missed optimization remarks are active only if the -Rpass-missed // flag has a regular expression that matches the name of the pass // name in \p D. @@ -553,7 +550,7 @@ void BackendConsumer::OptimizationRemarkHandler( } void BackendConsumer::OptimizationRemarkHandler( - const llvm::DiagnosticInfoOptimizationRemarkAnalysis &D) { + const llvm::OptimizationRemarkAnalysis &D) { // Optimization analysis remarks are active if the pass name is set to // llvm::DiagnosticInfo::AlwasyPrint or if the -Rpass-analysis flag has a // regular expression that matches the name of the pass name in \p D. @@ -566,7 +563,7 @@ void BackendConsumer::OptimizationRemarkHandler( } void BackendConsumer::OptimizationRemarkHandler( - const llvm::DiagnosticInfoOptimizationRemarkAnalysisFPCommute &D) { + const llvm::OptimizationRemarkAnalysisFPCommute &D) { // Optimization analysis remarks are active if the pass name is set to // llvm::DiagnosticInfo::AlwasyPrint or if the -Rpass-analysis flag has a // regular expression that matches the name of the pass name in \p D. @@ -579,7 +576,7 @@ void BackendConsumer::OptimizationRemarkHandler( } void BackendConsumer::OptimizationRemarkHandler( - const llvm::DiagnosticInfoOptimizationRemarkAnalysisAliasing &D) { + const llvm::OptimizationRemarkAnalysisAliasing &D) { // Optimization analysis remarks are active if the pass name is set to // llvm::DiagnosticInfo::AlwasyPrint or if the -Rpass-analysis flag has a // regular expression that matches the name of the pass name in \p D. @@ -623,30 +620,27 @@ void BackendConsumer::DiagnosticHandlerImpl(const DiagnosticInfo &DI) { case llvm::DK_OptimizationRemark: // Optimization remarks are always handled completely by this // handler. There is no generic way of emitting them. - OptimizationRemarkHandler(cast(DI)); + OptimizationRemarkHandler(cast(DI)); return; case llvm::DK_OptimizationRemarkMissed: // Optimization remarks are always handled completely by this // handler. There is no generic way of emitting them. - OptimizationRemarkHandler(cast(DI)); + OptimizationRemarkHandler(cast(DI)); return; case llvm::DK_OptimizationRemarkAnalysis: // Optimization remarks are always handled completely by this // handler. There is no generic way of emitting them. - OptimizationRemarkHandler( - cast(DI)); + OptimizationRemarkHandler(cast(DI)); return; case llvm::DK_OptimizationRemarkAnalysisFPCommute: // Optimization remarks are always handled completely by this // handler. There is no generic way of emitting them. - OptimizationRemarkHandler( - cast(DI)); + OptimizationRemarkHandler(cast(DI)); return; case llvm::DK_OptimizationRemarkAnalysisAliasing: // Optimization remarks are always handled completely by this // handler. There is no generic way of emitting them. - OptimizationRemarkHandler( - cast(DI)); + OptimizationRemarkHandler(cast(DI)); return; case llvm::DK_OptimizationFailure: // Optimization failures are always handled completely by this -- 2.7.4