class DiagnosticInfo
Declaration
class DiagnosticInfo { /* full declaration omitted */ };
Description
This is the base abstract class for diagnostic reporting in the backend. The print method must be overloaded by the subclasses to print a user-friendly message in the client of the backend (let us call it a frontend).
Declared at: llvm/include/llvm/IR/DiagnosticInfo.h:98
Method Overview
- public DiagnosticInfo(int Kind, llvm::DiagnosticSeverity Severity)
- public int getKind() const
- public llvm::DiagnosticSeverity getSeverity() const
- public virtual void print(llvm::DiagnosticPrinter & DP) const
- public virtual ~DiagnosticInfo()
Methods
¶DiagnosticInfo(int Kind,
llvm::DiagnosticSeverity Severity)
DiagnosticInfo(int Kind,
llvm::DiagnosticSeverity Severity)
Declared at: llvm/include/llvm/IR/DiagnosticInfo.h:107
Parameters
- int Kind
- llvm::DiagnosticSeverity Severity
¶int getKind() const
int getKind() const
Declared at: llvm/include/llvm/IR/DiagnosticInfo.h:112
¶llvm::DiagnosticSeverity getSeverity() const
llvm::DiagnosticSeverity getSeverity() const
Declared at: llvm/include/llvm/IR/DiagnosticInfo.h:113
¶virtual void print(
llvm::DiagnosticPrinter& DP) const
virtual void print(
llvm::DiagnosticPrinter& DP) const
Description
Print using the given \p DP a user-friendly message. This is the default message that will be printed to the user. It is used when the frontend does not directly take advantage of the information contained in fields of the subclasses. The printed message must not end with '.' nor start with a severity keyword.
Declared at: llvm/include/llvm/IR/DiagnosticInfo.h:121
Parameters
¶virtual ~DiagnosticInfo()
virtual ~DiagnosticInfo()
Declared at: llvm/include/llvm/IR/DiagnosticInfo.h:110