36 for (
unsigned i = 1; i < Loc.
size(); ++i)
38 "instantiated from multiclass");
50 errs() <<
"warning:" << Msg <<
"\n";
62 errs() <<
"error:" << Msg <<
"\n";
const T & front() const
front - Get the first element.
static void PrintMessage(ArrayRef< SMLoc > Loc, SourceMgr::DiagKind Kind, const Twine &Msg)
size_t size() const
size - Get the array size.
bool empty() const
empty - Check if the array is empty.
void PrintWarning(ArrayRef< SMLoc > WarningLoc, const Twine &Msg)
static SMLoc getFromPointer(const char *Ptr)
LLVM_ATTRIBUTE_NORETURN void PrintFatalError(const std::string &Msg)
void PrintMessage(raw_ostream &OS, SMLoc Loc, DiagKind Kind, const Twine &Msg, ArrayRef< SMRange > Ranges=None, ArrayRef< SMFixIt > FixIts=None, bool ShowColors=true) const
Represents a location in source code.
void PrintError(ArrayRef< SMLoc > ErrorLoc, const Twine &Msg)