llvm::PrintFatalError

PrintFatalError overloads

Synopses

Declared in <llvm/TableGen/Error.h>

Print an error via PrintMsg and then exit the process.

[[noreturn]]
void
PrintFatalError(function_ref<void(raw_ostream&)> PrintMsg);
» more...

Print an error with message Msg and then exit the process.

[[noreturn]]
void
PrintFatalError(Twine const& Msg);
» more...

Print an error at ErrorLoc and then exit the process.

[[noreturn]]
void
PrintFatalError(
    ArrayRef<SMLoc> ErrorLoc,
    Twine const& Msg);
» more...

Print an error at the location of record Rec and then exit the process.

[[noreturn]]
void
PrintFatalError(
    Record const* Rec,
    Twine const& Msg);
» more...

Print an error at the location of field RecVal and then exit the process.

[[noreturn]]
void
PrintFatalError(
    RecordVal const* RecVal,
    Twine const& Msg);
» more...

Return Value

NOTE

This function does not return.

Parameters

NameDescription
PrintMsgCallback that writes the error body to OS.
MsgError text to print before exiting.
ErrorLocSource locations associated with the error.
RecRecord whose source location is used for the error.
RecValRecord field whose source location is used for the error.