LLVM 22.0.0git
|
#include "llvm/IR/DiagnosticInfo.h"
Public Member Functions | |
DiagnosticInfoGeneric (const Twine &MsgStr LLVM_LIFETIME_BOUND, DiagnosticSeverity Severity=DS_Error) | |
MsgStr is the message to be reported to the frontend. | |
DiagnosticInfoGeneric (const Instruction *I, const Twine &ErrMsg LLVM_LIFETIME_BOUND, DiagnosticSeverity Severity=DS_Error) | |
const Twine & | getMsgStr () const |
const Instruction * | getInstruction () const |
void | print (DiagnosticPrinter &DP) const override |
Public Member Functions inherited from llvm::DiagnosticInfo | |
DiagnosticInfo (int Kind, DiagnosticSeverity Severity) | |
virtual | ~DiagnosticInfo ()=default |
int | getKind () const |
DiagnosticSeverity | getSeverity () const |
Static Public Member Functions | |
static bool | classof (const DiagnosticInfo *DI) |
Definition at line 143 of file DiagnosticInfo.h.
|
inline |
MsgStr
is the message to be reported to the frontend.
This class does not copy MsgStr
, therefore the reference must be valid for the whole life time of the Diagnostic.
Definition at line 151 of file DiagnosticInfo.h.
References llvm::DiagnosticInfo::DiagnosticInfo(), llvm::DK_Generic, llvm::DS_Error, and LLVM_LIFETIME_BOUND.
|
inline |
Definition at line 155 of file DiagnosticInfo.h.
References llvm::DiagnosticInfo::DiagnosticInfo(), llvm::DK_Generic, llvm::DS_Error, I, and LLVM_LIFETIME_BOUND.
|
inlinestatic |
Definition at line 166 of file DiagnosticInfo.h.
References llvm::DiagnosticInfo::DiagnosticInfo(), llvm::DK_Generic, and llvm::DiagnosticInfo::getKind().
|
inline |
Definition at line 161 of file DiagnosticInfo.h.
Definition at line 160 of file DiagnosticInfo.h.
Referenced by print().
|
overridevirtual |
Implements llvm::DiagnosticInfo.
Definition at line 52 of file DiagnosticInfo.cpp.
References getMsgStr().