LLVM 20.0.0git
Public Member Functions | Static Public Member Functions | List of all members
llvm::DiagnosticInfoSampleProfile Class Reference

Diagnostic information for the sample profiler. More...

#include "llvm/IR/DiagnosticInfo.h"

Inheritance diagram for llvm::DiagnosticInfoSampleProfile:
Inheritance graph
[legend]

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 TwinegetMsg () 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)
 

Detailed Description

Diagnostic information for the sample profiler.

Definition at line 235 of file DiagnosticInfo.h.

Constructor & Destructor Documentation

◆ DiagnosticInfoSampleProfile() [1/3]

llvm::DiagnosticInfoSampleProfile::DiagnosticInfoSampleProfile ( StringRef  FileName,
unsigned  LineNum,
const Twine Msg,
DiagnosticSeverity  Severity = DS_Error 
)
inline

Definition at line 237 of file DiagnosticInfo.h.

◆ DiagnosticInfoSampleProfile() [2/3]

llvm::DiagnosticInfoSampleProfile::DiagnosticInfoSampleProfile ( StringRef  FileName,
const Twine Msg,
DiagnosticSeverity  Severity = DS_Error 
)
inline

Definition at line 242 of file DiagnosticInfo.h.

◆ DiagnosticInfoSampleProfile() [3/3]

llvm::DiagnosticInfoSampleProfile::DiagnosticInfoSampleProfile ( const Twine Msg,
DiagnosticSeverity  Severity = DS_Error 
)
inline

Definition at line 246 of file DiagnosticInfo.h.

Member Function Documentation

◆ classof()

static bool llvm::DiagnosticInfoSampleProfile::classof ( const DiagnosticInfo DI)
inlinestatic

Definition at line 253 of file DiagnosticInfo.h.

References llvm::DK_SampleProfile, and llvm::DiagnosticInfo::getKind().

◆ getFileName()

StringRef llvm::DiagnosticInfoSampleProfile::getFileName ( ) const
inline

Definition at line 257 of file DiagnosticInfo.h.

Referenced by print().

◆ getLineNum()

unsigned llvm::DiagnosticInfoSampleProfile::getLineNum ( ) const
inline

Definition at line 258 of file DiagnosticInfo.h.

Referenced by print().

◆ getMsg()

const Twine & llvm::DiagnosticInfoSampleProfile::getMsg ( ) const
inline

Definition at line 259 of file DiagnosticInfo.h.

Referenced by print().

◆ print()

void DiagnosticInfoSampleProfile::print ( DiagnosticPrinter DP) const
overridevirtual

The documentation for this class was generated from the following files: