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

Methods

DiagnosticInfo(int Kind,
               llvm::DiagnosticSeverity Severity)

Declared at: llvm/include/llvm/IR/DiagnosticInfo.h:107

Parameters

int Kind
llvm::DiagnosticSeverity Severity

int getKind() const

Declared at: llvm/include/llvm/IR/DiagnosticInfo.h:112

llvm::DiagnosticSeverity getSeverity() const

Declared at: llvm/include/llvm/IR/DiagnosticInfo.h:113

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

llvm::DiagnosticPrinter& DP

virtual ~DiagnosticInfo()

Declared at: llvm/include/llvm/IR/DiagnosticInfo.h:110