LLVM 20.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, DiagnosticSeverity Severity=DS_Error) | |
DiagnosticInfoSampleProfile (StringRef FileName, const Twine &Msg, DiagnosticSeverity Severity=DS_Error) | |
DiagnosticInfoSampleProfile (const Twine &Msg, DiagnosticSeverity Severity=DS_Error) | |
void | print (DiagnosticPrinter &DP) const override |
StringRef | getFileName () const |
unsigned | getLineNum () const |
const Twine & | getMsg () const |
Public Member Functions inherited from llvm::DiagnosticInfo | |
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 257 of file DiagnosticInfo.h.
|
inline |
Definition at line 259 of file DiagnosticInfo.h.
|
inline |
Definition at line 264 of file DiagnosticInfo.h.
|
inline |
Definition at line 268 of file DiagnosticInfo.h.
|
inlinestatic |
Definition at line 275 of file DiagnosticInfo.h.
References llvm::DK_SampleProfile, and llvm::DiagnosticInfo::getKind().
|
inline |
Definition at line 279 of file DiagnosticInfo.h.
Referenced by print().
|
inline |
Definition at line 280 of file DiagnosticInfo.h.
Referenced by print().
Definition at line 281 of file DiagnosticInfo.h.
Referenced by print().
|
overridevirtual |
Implements llvm::DiagnosticInfo.
Definition at line 124 of file DiagnosticInfo.cpp.
References llvm::StringRef::empty(), getFileName(), getLineNum(), and getMsg().