LLVM  6.0.0svn
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 279 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 281 of file DiagnosticInfo.h.

◆ DiagnosticInfoSampleProfile() [2/3]

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

Definition at line 286 of file DiagnosticInfo.h.

◆ DiagnosticInfoSampleProfile() [3/3]

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

Definition at line 290 of file DiagnosticInfo.h.

References llvm::DiagnosticInfo::print().

Member Function Documentation

◆ classof()

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

Definition at line 297 of file DiagnosticInfo.h.

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

◆ getFileName()

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

Definition at line 301 of file DiagnosticInfo.h.

◆ getLineNum()

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

Definition at line 302 of file DiagnosticInfo.h.

◆ getMsg()

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

Definition at line 303 of file DiagnosticInfo.h.

◆ print()

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

Implements llvm::DiagnosticInfo.

Definition at line 89 of file DiagnosticInfo.cpp.

References getFileName().


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