LLVM 19.0.0git
Public Member Functions | Static Public Member Functions | List of all members
llvm::DiagnosticInfoPGOProfile Class Reference

Diagnostic information for the PGO profiler. More...

#include "llvm/IR/DiagnosticInfo.h"

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

Public Member Functions

 DiagnosticInfoPGOProfile (const char *FileName, const Twine &Msg, DiagnosticSeverity Severity=DS_Error)
 
void print (DiagnosticPrinter &DP) const override
 
const chargetFileName () 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 PGO profiler.

Definition at line 274 of file DiagnosticInfo.h.

Constructor & Destructor Documentation

◆ DiagnosticInfoPGOProfile()

llvm::DiagnosticInfoPGOProfile::DiagnosticInfoPGOProfile ( const char FileName,
const Twine Msg,
DiagnosticSeverity  Severity = DS_Error 
)
inline

Definition at line 276 of file DiagnosticInfo.h.

Member Function Documentation

◆ classof()

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

Definition at line 283 of file DiagnosticInfo.h.

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

◆ getFileName()

const char * llvm::DiagnosticInfoPGOProfile::getFileName ( ) const
inline

Definition at line 287 of file DiagnosticInfo.h.

Referenced by print().

◆ getMsg()

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

Definition at line 288 of file DiagnosticInfo.h.

Referenced by print().

◆ print()

void DiagnosticInfoPGOProfile::print ( DiagnosticPrinter DP) const
overridevirtual
See also
DiagnosticInfo::print.

Implements llvm::DiagnosticInfo.

Definition at line 102 of file DiagnosticInfo.cpp.

References getFileName(), and getMsg().


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