LLVM API Documentation

Public Member Functions | Static Public Member Functions
llvm::DiagnosticInfoInlineAsm Class Reference

#include <DiagnosticInfo.h>

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

List of all members.

Public Member Functions

 DiagnosticInfoInlineAsm (const Twine &MsgStr, DiagnosticSeverity Severity=DS_Error)
 DiagnosticInfoInlineAsm (unsigned LocCookie, const Twine &MsgStr, DiagnosticSeverity Severity=DS_Error)
 DiagnosticInfoInlineAsm (const Instruction &I, const Twine &MsgStr, DiagnosticSeverity Severity=DS_Error)
unsigned getLocCookie () const
const TwinegetMsgStr () const
const InstructiongetInstruction () const
void print (DiagnosticPrinter &DP) const override

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 101 of file DiagnosticInfo.h.


Constructor & Destructor Documentation

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 114 of file DiagnosticInfo.h.

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 123 of file DiagnosticInfo.h.

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

Definition at line 143 of file DiagnosticInfo.h.

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

Definition at line 138 of file DiagnosticInfo.h.

Definition at line 136 of file DiagnosticInfo.h.

Referenced by print().

Definition at line 137 of file DiagnosticInfo.h.

Referenced by print().

void DiagnosticInfoInlineAsm::print ( DiagnosticPrinter DP) const [override, virtual]
See also:
DiagnosticInfo::print.

Implements llvm::DiagnosticInfo.

Definition at line 106 of file DiagnosticInfo.cpp.

References getLocCookie(), and getMsgStr().


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