LLVM 22.0.0git
|
Diagnostic information for the sample profiler. More...
#include "llvm/IR/DiagnosticInfo.h"
Public Member Functions | |
DiagnosticInfoSampleProfile (StringRef FileName, unsigned LineNum, const Twine &Msg LLVM_LIFETIME_BOUND, DiagnosticSeverity Severity=DS_Error) | |
DiagnosticInfoSampleProfile (StringRef FileName, const Twine &Msg LLVM_LIFETIME_BOUND, DiagnosticSeverity Severity=DS_Error) | |
DiagnosticInfoSampleProfile (const Twine &Msg LLVM_LIFETIME_BOUND, DiagnosticSeverity Severity=DS_Error) | |
void | print (DiagnosticPrinter &DP) const override |
StringRef | getFileName () const |
unsigned | getLineNum () const |
const Twine & | getMsg () const |
![]() | |
DiagnosticInfo (int Kind, DiagnosticSeverity Severity) | |
virtual | ~DiagnosticInfo ()=default |
int | getKind () const |
DiagnosticSeverity | getSeverity () const |
virtual void | print (DiagnosticPrinter &DP) const =0 |
Print using the given DP a user-friendly message. | |
Static Public Member Functions | |
static bool | classof (const DiagnosticInfo *DI) |
Diagnostic information for the sample profiler.
Definition at line 264 of file DiagnosticInfo.h.
|
inline |
Definition at line 266 of file DiagnosticInfo.h.
References llvm::DK_SampleProfile.
|
inline |
Definition at line 271 of file DiagnosticInfo.h.
References llvm::DK_SampleProfile.
|
inline |
Definition at line 276 of file DiagnosticInfo.h.
References llvm::DK_SampleProfile.
|
inlinestatic |
Definition at line 283 of file DiagnosticInfo.h.
References llvm::DK_SampleProfile, and llvm::DiagnosticInfo::getKind().
|
inline |
Definition at line 287 of file DiagnosticInfo.h.
Referenced by print().
|
inline |
Definition at line 288 of file DiagnosticInfo.h.
Referenced by print().
Definition at line 289 of file DiagnosticInfo.h.
Referenced by print().
|
overridevirtual |
Implements llvm::DiagnosticInfo.
Definition at line 129 of file DiagnosticInfo.cpp.
References llvm::StringRef::empty(), getFileName(), getLineNum(), and getMsg().