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

Diagnostic information for inline asm reporting. More...

#include <DiagnosticInfo.h>

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

Public Member Functions

 DiagnosticInfoInlineAsm (const Twine &MsgStr, DiagnosticSeverity Severity=DS_Error)
 MsgStr is the message to be reported to the frontend. More...
 
 DiagnosticInfoInlineAsm (unsigned LocCookie, const Twine &MsgStr, DiagnosticSeverity Severity=DS_Error)
 LocCookie if non-zero gives the line number for this report. More...
 
 DiagnosticInfoInlineAsm (const Instruction &I, const Twine &MsgStr, DiagnosticSeverity Severity=DS_Error)
 Instr gives the original instruction that triggered the diagnostic. More...
 
unsigned getLocCookie () const
 
const TwinegetMsgStr () const
 
const InstructiongetInstruction () const
 
void print (DiagnosticPrinter &DP) const override
 
- 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 inline asm reporting.

This is basically a message and an optional location.

Definition at line 108 of file DiagnosticInfo.h.

Constructor & Destructor Documentation

llvm::DiagnosticInfoInlineAsm::DiagnosticInfoInlineAsm ( const Twine MsgStr,
DiagnosticSeverity  Severity = DS_Error 
)
inline

MsgStr is the message to be reported to the frontend.

This class does not copy MsgStr, therefore the reference must be valid for the whole life time of the Diagnostic.

Definition at line 121 of file DiagnosticInfo.h.

llvm::DiagnosticInfoInlineAsm::DiagnosticInfoInlineAsm ( unsigned  LocCookie,
const Twine MsgStr,
DiagnosticSeverity  Severity = DS_Error 
)
inline

LocCookie if non-zero gives the line number for this report.

MsgStr gives the message. This class does not copy MsgStr, therefore the reference must be valid for the whole life time of the Diagnostic.

Definition at line 130 of file DiagnosticInfo.h.

DiagnosticInfoInlineAsm::DiagnosticInfoInlineAsm ( const Instruction I,
const Twine MsgStr,
DiagnosticSeverity  Severity = DS_Error 
)

Instr gives the original instruction that triggered the diagnostic.

MsgStr gives the message. This class does not copy MsgStr, therefore the reference must be valid for the whole life time of the Diagnostic. Same for I.

Definition at line 94 of file DiagnosticInfo.cpp.

References llvm::Instruction::getMetadata().

Member Function Documentation

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

Definition at line 150 of file DiagnosticInfo.h.

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

const Instruction* llvm::DiagnosticInfoInlineAsm::getInstruction ( ) const
inline

Definition at line 145 of file DiagnosticInfo.h.

unsigned llvm::DiagnosticInfoInlineAsm::getLocCookie ( ) const
inline

Definition at line 143 of file DiagnosticInfo.h.

Referenced by print().

const Twine& llvm::DiagnosticInfoInlineAsm::getMsgStr ( ) const
inline

Definition at line 144 of file DiagnosticInfo.h.

Referenced by print().

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

Implements llvm::DiagnosticInfo.

Definition at line 107 of file DiagnosticInfo.cpp.

References getLocCookie(), and getMsgStr().


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