LLVM API Documentation
Diagnostic information for optimization failures. More...
#include <DiagnosticInfo.h>
Public Member Functions | |
DiagnosticInfoOptimizationFailure (const Function &Fn, const DebugLoc &DLoc, const Twine &Msg) | |
bool | isEnabled () const override |
Static Public Member Functions | |
static bool | classof (const DiagnosticInfo *DI) |
Diagnostic information for optimization failures.
Definition at line 417 of file DiagnosticInfo.h.
llvm::DiagnosticInfoOptimizationFailure::DiagnosticInfoOptimizationFailure | ( | const Function & | Fn, |
const DebugLoc & | DLoc, | ||
const Twine & | Msg | ||
) | [inline] |
Fn
is the function where the diagnostic is being emitted. DLoc
is the location information to use in the diagnostic. If line table information is available, the diagnostic will include the source code location. 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.
Definition at line 426 of file DiagnosticInfo.h.
static bool llvm::DiagnosticInfoOptimizationFailure::classof | ( | const DiagnosticInfo * | DI | ) | [inline, static] |
Reimplemented from llvm::DiagnosticInfoOptimizationBase.
Definition at line 431 of file DiagnosticInfo.h.
References llvm::DK_OptimizationFailure, and llvm::DiagnosticInfo::getKind().
bool DiagnosticInfoOptimizationFailure::isEnabled | ( | ) | const [override, virtual] |
Implements llvm::DiagnosticInfoOptimizationBase.
Definition at line 193 of file DiagnosticInfo.cpp.
References llvm::DS_Warning, and llvm::DiagnosticInfo::getSeverity().