PrintError overloads
Declared in <llvm/TableGen/Error.h>
Print an error diagnostic by writing into a colored error stream.
void
PrintError(function_ref<void(raw_ostream&)> PrintMsg);
» more...
Print an error diagnostic with message Msg and no source location.
void
PrintError(Twine const& Msg);
» more...
Print an error diagnostic at source location(s) ErrorLoc.
void
PrintError(
ArrayRef<SMLoc> ErrorLoc,
Twine const& Msg);
» more...
Print an error diagnostic at the location of record Rec.
void
PrintError(
Record const* Rec,
Twine const& Msg);
» more...
Print an error diagnostic at the location of field RecVal.
void
PrintError(
RecordVal const* RecVal,
Twine const& Msg);
» more...
Print an error diagnostic at pointer location Loc within the buffer.
void
PrintError(
char const* Loc,
Twine const& Msg);
» more...
| Name | Description |
|---|---|
| PrintMsg | Callback that writes the error body to OS. |
| Msg | Error text to print. |
| ErrorLoc | Source locations associated with the error. |
| Rec | Record whose source location is used for the error. |
| RecVal | Record field whose source location is used for the error. |
| Loc | Pointer into a SourceMgr buffer identifying the error site. |