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

Diagnostic information for the sample profiler. More...

#include <DiagnosticInfo.h>

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

Public Member Functions

 DiagnosticInfoSampleProfile (const char *FileName, unsigned LineNum, const Twine &Msg, DiagnosticSeverity Severity=DS_Error)
 
 DiagnosticInfoSampleProfile (const char *FileName, const Twine &Msg, DiagnosticSeverity Severity=DS_Error)
 
 DiagnosticInfoSampleProfile (const Twine &Msg, DiagnosticSeverity Severity=DS_Error)
 
void print (DiagnosticPrinter &DP) const override
 
const char * getFileName () const
 
unsigned getLineNum () const
 
const TwinegetMsg () const
 
- Public Member Functions inherited from llvm::DiagnosticInfo
 DiagnosticInfo (int Kind, DiagnosticSeverity Severity)
 
virtual ~DiagnosticInfo ()
 
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 211 of file DiagnosticInfo.h.

Constructor & Destructor Documentation

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

Definition at line 213 of file DiagnosticInfo.h.

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

Definition at line 218 of file DiagnosticInfo.h.

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

Definition at line 222 of file DiagnosticInfo.h.

Member Function Documentation

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

Definition at line 230 of file DiagnosticInfo.h.

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

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

Definition at line 234 of file DiagnosticInfo.h.

Referenced by print().

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

Definition at line 235 of file DiagnosticInfo.h.

Referenced by print().

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

Definition at line 236 of file DiagnosticInfo.h.

Referenced by print().

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

Implements llvm::DiagnosticInfo.

Definition at line 123 of file DiagnosticInfo.cpp.

References getFileName(), getLineNum(), and getMsg().


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