LLVM  8.0.1
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]
Collaboration diagram for llvm::DiagnosticInfoSampleProfile:
Collaboration 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
 

Static Public Member Functions

static bool classof (const DiagnosticInfo *DI)
 

Detailed Description

Diagnostic information for the sample profiler.

Definition at line 281 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 283 of file DiagnosticInfo.h.

◆ DiagnosticInfoSampleProfile() [2/3]

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

Definition at line 288 of file DiagnosticInfo.h.

◆ DiagnosticInfoSampleProfile() [3/3]

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

Definition at line 292 of file DiagnosticInfo.h.

References llvm::DiagnosticInfo::print().

Member Function Documentation

◆ classof()

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

Definition at line 299 of file DiagnosticInfo.h.

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

◆ getFileName()

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

Definition at line 303 of file DiagnosticInfo.h.

◆ getLineNum()

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

Definition at line 304 of file DiagnosticInfo.h.

◆ getMsg()

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

Definition at line 305 of file DiagnosticInfo.h.

◆ print()

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

Implements llvm::DiagnosticInfo.

Definition at line 91 of file DiagnosticInfo.cpp.

References getFileName().


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