class DiagnosticInfoDontCall

Declaration

class DiagnosticInfoDontCall : 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/include/llvm/IR/DiagnosticInfo.h:1102

Inherits from: DiagnosticInfo

Member Variables

private llvm::StringRef CalleeName
private llvm::StringRef Note
private unsigned int LocCookie

Method Overview

  • public DiagnosticInfoDontCall(llvm::StringRef CalleeName, llvm::StringRef Note, llvm::DiagnosticSeverity DS, unsigned int LocCookie)
  • public static bool classof(const llvm::DiagnosticInfo * DI)
  • public llvm::StringRef getFunctionName() const
  • public unsigned int getLocCookie() const
  • public llvm::StringRef getNote() const
  • public void print(llvm::DiagnosticPrinter & DP) const

Inherited from DiagnosticInfo:

Methods

DiagnosticInfoDontCall(
    llvm::StringRef CalleeName,
    llvm::StringRef Note,
    llvm::DiagnosticSeverity DS,
    unsigned int LocCookie)

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

Parameters

llvm::StringRef CalleeName
llvm::StringRef Note
llvm::DiagnosticSeverity DS
unsigned int LocCookie

static bool classof(
    const llvm::DiagnosticInfo* DI)

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

Parameters

const llvm::DiagnosticInfo* DI

llvm::StringRef getFunctionName() const

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

unsigned int getLocCookie() const

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

llvm::StringRef getNote() const

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

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:1115

Parameters

llvm::DiagnosticPrinter& DP