|
LLVM
8.0.1
|
Diagnostic information for inline asm reporting. More...
#include "llvm/IR/DiagnosticInfo.h"


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 Twine & | getMsgStr () const |
| const Instruction * | getInstruction () const |
| void | print (DiagnosticPrinter &DP) const override |
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) |
Diagnostic information for inline asm reporting.
This is basically a message and an optional location.
Definition at line 127 of file DiagnosticInfo.h.
|
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 140 of file DiagnosticInfo.h.
|
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 148 of file DiagnosticInfo.h.
References llvm::DS_Error, and I.
| 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 54 of file DiagnosticInfo.cpp.
References llvm::Instruction::getMetadata().
|
inlinestatic |
Definition at line 168 of file DiagnosticInfo.h.
References llvm::DK_InlineAsm, and llvm::DiagnosticInfo::getKind().
|
inline |
Definition at line 163 of file DiagnosticInfo.h.
References llvm::DiagnosticInfo::print().
|
inline |
Definition at line 161 of file DiagnosticInfo.h.
Referenced by print().
Definition at line 162 of file DiagnosticInfo.h.
Referenced by print().
|
overridevirtual |
Implements llvm::DiagnosticInfo.
Definition at line 66 of file DiagnosticInfo.cpp.
References getLocCookie(), and getMsgStr().
1.8.13