LLVM API Documentation
This is the base abstract class for diagnostic reporting in the backend. The print method must be overloaded by the subclasses to print a user-friendly message in the client of the backend (let us call it a frontend). More...
#include <DiagnosticInfo.h>
Public Member Functions | |
DiagnosticInfo (int Kind, DiagnosticSeverity Severity) | |
virtual | ~DiagnosticInfo () |
int | getKind () const |
DiagnosticSeverity | getSeverity () const |
virtual void | print (DiagnosticPrinter &DP) const =0 |
This is the base abstract class for diagnostic reporting in the backend. The print method must be overloaded by the subclasses to print a user-friendly message in the client of the backend (let us call it a frontend).
Definition at line 74 of file DiagnosticInfo.h.
llvm::DiagnosticInfo::DiagnosticInfo | ( | int | Kind, |
DiagnosticSeverity | Severity | ||
) | [inline] |
Definition at line 82 of file DiagnosticInfo.h.
virtual llvm::DiagnosticInfo::~DiagnosticInfo | ( | ) | [inline, virtual] |
Definition at line 85 of file DiagnosticInfo.h.
int llvm::DiagnosticInfo::getKind | ( | ) | const [inline] |
Definition at line 87 of file DiagnosticInfo.h.
Referenced by llvm::DiagnosticInfoInlineAsm::classof(), llvm::DiagnosticInfoStackSize::classof(), llvm::DiagnosticInfoDebugMetadataVersion::classof(), llvm::DiagnosticInfoSampleProfile::classof(), llvm::DiagnosticInfoOptimizationBase::classof(), llvm::DiagnosticInfoOptimizationRemark::classof(), llvm::DiagnosticInfoOptimizationRemarkMissed::classof(), llvm::DiagnosticInfoOptimizationRemarkAnalysis::classof(), llvm::DiagnosticInfoOptimizationFailure::classof(), and llvm::LLVMContext::diagnose().
DiagnosticSeverity llvm::DiagnosticInfo::getSeverity | ( | ) | const [inline] |
Definition at line 88 of file DiagnosticInfo.h.
Referenced by llvm::LLVMContext::diagnose(), and llvm::DiagnosticInfoOptimizationFailure::isEnabled().
virtual void llvm::DiagnosticInfo::print | ( | DiagnosticPrinter & | DP | ) | const [pure virtual] |
Print using the given DP
a user-friendly message. This is the default message that will be printed to the user. It is used when the frontend does not directly take advantage of the information contained in fields of the subclasses. The printed message must not end with '.' nor start with a severity keyword.
Implemented in llvm::DiagnosticInfoOptimizationBase, llvm::DiagnosticInfoSampleProfile, llvm::DiagnosticInfoDebugMetadataVersion, llvm::DiagnosticInfoStackSize, and llvm::DiagnosticInfoInlineAsm.
Referenced by llvm::LLVMContext::diagnose().