mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Rename DiagnosticInfoOptimizationWarning to DiagnosticInfoOptimizationFailure
so the severity of the message is not part of the type name. Reviewed by Alp Toker git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213399 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -51,7 +51,7 @@ enum DiagnosticKind {
|
||||
DK_OptimizationRemark,
|
||||
DK_OptimizationRemarkMissed,
|
||||
DK_OptimizationRemarkAnalysis,
|
||||
DK_OptimizationWarning,
|
||||
DK_OptimizationFailure,
|
||||
DK_FirstPluginKind
|
||||
};
|
||||
|
||||
@@ -412,8 +412,8 @@ void emitOptimizationRemarkAnalysis(LLVMContext &Ctx, const char *PassName,
|
||||
const Function &Fn, const DebugLoc &DLoc,
|
||||
const Twine &Msg);
|
||||
|
||||
/// Diagnostic information for optimization warnings.
|
||||
class DiagnosticInfoOptimizationWarning
|
||||
/// Diagnostic information for optimization failures.
|
||||
class DiagnosticInfoOptimizationFailure
|
||||
: public DiagnosticInfoOptimizationBase {
|
||||
public:
|
||||
/// \p Fn is the function where the diagnostic is being emitted. \p DLoc is
|
||||
@@ -422,13 +422,13 @@ public:
|
||||
/// location. \p Msg is the message to show. Note that this class does not
|
||||
/// copy this message, so this reference must be valid for the whole life time
|
||||
/// of the diagnostic.
|
||||
DiagnosticInfoOptimizationWarning(const Function &Fn, const DebugLoc &DLoc,
|
||||
DiagnosticInfoOptimizationFailure(const Function &Fn, const DebugLoc &DLoc,
|
||||
const Twine &Msg)
|
||||
: DiagnosticInfoOptimizationBase(DK_OptimizationWarning, DS_Warning,
|
||||
: DiagnosticInfoOptimizationBase(DK_OptimizationFailure, DS_Warning,
|
||||
nullptr, Fn, DLoc, Msg) {}
|
||||
|
||||
static bool classof(const DiagnosticInfo *DI) {
|
||||
return DI->getKind() == DK_OptimizationWarning;
|
||||
return DI->getKind() == DK_OptimizationFailure;
|
||||
}
|
||||
|
||||
/// \see DiagnosticInfoOptimizationBase::isEnabled.
|
||||
|
Reference in New Issue
Block a user