OSDN Git Service

[OptDiag] Split code region out of DiagnosticInfoOptimizationBase
authorAdam Nemet <anemet@apple.com>
Wed, 25 Jan 2017 23:20:25 +0000 (23:20 +0000)
committerAdam Nemet <anemet@apple.com>
Wed, 25 Jan 2017 23:20:25 +0000 (23:20 +0000)
commit2355a8bd5e9fb36cc725eca7756e94c3924318db
treefc236fbc0e1d085c77ff2e765de5a3665cb15e91
parent60c9e9f95d16a0524cd24713a8d6e377534186c2
[OptDiag] Split code region out of DiagnosticInfoOptimizationBase

Code region is the only part of this class that is IR-specific.  Code
region is moved down in the inheritance tree to a new derived class,
called DiagnosticInfoIROptimization.

All the existing remarks are derived from this new class now.

This allows the new MIR pass-remark classes to be derived from
DiagnosticInfoOptimizationBase.

Also because we keep the name DiagnosticInfoOptimizationBase, the clang
parts don't need any adjustment.

Differential Revision: https://reviews.llvm.org/D29003

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293109 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/OptimizationDiagnosticInfo.h
include/llvm/IR/DiagnosticInfo.h
lib/Analysis/OptimizationDiagnosticInfo.cpp
lib/IR/DiagnosticInfo.cpp