class LinkDiagnosticInfo

Declaration

class LinkDiagnosticInfo : public 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/lib/Linker/LinkDiagnosticInfo.h:15

Inherits from: DiagnosticInfo

Member Variables

private const llvm::Twine& Msg

Method Overview

  • public LinkDiagnosticInfo(llvm::DiagnosticSeverity Severity, const llvm::Twine & Msg)
  • public void print(llvm::DiagnosticPrinter & DP) const

Inherited from DiagnosticInfo:

Methods

LinkDiagnosticInfo(
    llvm::DiagnosticSeverity Severity,
    const llvm::Twine& Msg)

Declared at: llvm/lib/Linker/LinkDiagnosticInfo.h:19

Parameters

llvm::DiagnosticSeverity Severity
const llvm::Twine& Msg

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/lib/Linker/LinkDiagnosticInfo.h:20

Parameters

llvm::DiagnosticPrinter& DP