Lines Matching defs:Error
50 cl::desc("Consider warnings as error"));
110 /// \brief Was there an error parsing the inline assembly?
217 bool Error(SMLoc L, const Twine &Msg,
474 // ".err" or ".error"
554 return Error(L, Msg, Ranges);
560 bool AsmParser::Error(SMLoc L, const Twine &Msg, ArrayRef<SMRange> Ranges) {
613 if (tok->is(AsmToken::Error))
614 Error(Lexer.getErrLoc(), Lexer.getErr());
649 // We had an error, validate that one was emitted and recover by skipping to
651 assert(HadError && "Parse statement returned an error, but none emitted!");
782 // If we have an error assume that we've already handled it.
783 case AsmToken::Error:
808 return Error(FirstTokenLoc, "invalid token in expression");
820 return Error(AtLoc, "expected symbol variant after '@'");
832 return Error(Lexer.getTok().getLoc(),
853 return Error(SMLoc::getFromPointer(Split.second.begin()),
864 return Error(EndLoc, "unexpected modifier on variable reference");
899 return Error(Loc, "invalid reference to undefined symbol");
1073 return Error(StartLoc, "expected absolute expression");
1293 return Error(IDLoc, "invalid use of pseudo-symbol '.' as a label");
1306 return Error(IDLoc, "invalid symbol redefinition");
1558 return Error(IDLoc, "unknown directive");
1758 return Error(L, "Wrong number of arguments");
1999 Error(IDLoc, "invalid argument identifier for formal argument");
2015 Error(IDLoc, "cannot mix positional and keyword arguments");
2033 Error(IDLoc,
2060 Error(FALocs[FAI].isValid() ? FALocs[FAI] : Lexer.getLoc(),
2198 return Error(EqualLoc, "Recursive use of '" + Name + "'");
2204 return Error(EqualLoc, "redefinition of '" + Name + "'");
2206 return Error(EqualLoc, "invalid assignment to '" + Name + "'");
2208 return Error(EqualLoc, "invalid reassignment of non-absolute variable '" +
2215 Error(EqualLoc, "expected absolute expression");
2393 return Error(ExprLoc, "literal value out of range for directive");
2419 if (Lexer.getKind() == AsmToken::Error)
2438 return Error(ExprLoc, "literal value out of range for directive");
2644 return Error(Loc, "expected assembly-time absolute expression");
2700 Error(AlignmentLoc, "invalid alignment value");
2708 Error(AlignmentLoc, "alignment must be a power of 2");
2714 Error(MaxBytesLoc, "alignment directive can never be satisfied in this "
2790 Error(DirectiveLoc,
2796 Error(FileNumberLoc, "file number already allocated");
2887 return Error(Loc, "is_stmt value not 0 or 1");
2889 return Error(Loc, "is_stmt value not the constant value of 0 or 1");
2900 return Error(Loc, "isa number less than zero");
2903 return Error(Loc, "isa number not a constant value");
2909 return Error(Loc, "unknown sub-directive in '.loc' directive");
3229 return Error(getLexer().getLoc(),
3253 return Error(getLexer().getLoc(),
3274 return Error(Lexer.getLoc(),
3290 return Error(QualLoc, "missing parameter qualifier for "
3298 return Error(QualLoc, Qualifier + " is not a valid parameter qualifier "
3332 return Error(DirectiveLoc, "no matching '.endmacro' in definition");
3361 return Error(DirectiveLoc, "macro '" + Name + "' is already defined");
3505 return Error(DirectiveLoc, "macro '" + Name + "' is not defined");
3526 return Error(ExprLoc,
3550 return Error(Loc, kInvalidOptionError);
3553 return Error(Loc, kInvalidOptionError);
3555 return Error(Loc,
3642 return Error(Loc, "expected identifier in directive");
3648 return Error(Loc, "non-local symbol required in directive");
3651 return Error(Loc, "unable to emit symbol attribute");
3698 return Error(Pow2AlignmentLoc, "alignment not supported on this target");
3704 return Error(Pow2AlignmentLoc, "alignment must be a power of 2");
3717 return Error(SizeLoc, "invalid '.comm' or '.lcomm' directive size, can't "
3724 return Error(Pow2AlignmentLoc, "invalid '.comm' or '.lcomm' directive "
3728 return Error(IDLoc, "invalid symbol redefinition");
3753 Error(Loc, ".abort detected. Assembly stopping.");
3755 Error(Loc, ".abort '" + Str + "' detected. Assembly stopping.");
3780 Error(IncludeLoc, "Could not find include file '" + Filename + "'");
3805 Error(IncbinLoc, "Could not find incbin file '" + Filename + "'");
3982 Error(DirectiveLoc, "Encountered a .elseif that doesn't follow a .if or "
4018 Error(DirectiveLoc, "Encountered a .else that doesn't follow a .if or an "
4048 /// ::= .error [string]
4058 return Error(L, ".err encountered");
4060 StringRef Message = ".error directive invoked in source file";
4063 TokError(".error argument must be a string");
4072 Error(L, Message);
4085 Error(DirectiveLoc, "Encountered a .endif that doesn't follow a .if or "
4207 DirectiveKindMap[".error"] = DK_ERROR;
4217 Error(DirectiveLoc, "no matching '.endr' in definition");
4283 return Error(CountLoc, "unexpected token in '" + Dir + "' directive");
4287 return Error(CountLoc, "Count is negative");
4420 return Error(ExprLoc, "unexpected expression in _emit");
4423 return Error(ExprLoc, "literal value out of range for directive");
4436 return Error(ExprLoc, "unexpected expression in align");
4439 return Error(ExprLoc, "literal value not a power of two greater then zero");