Lines Matching refs:Loc

160     SMLoc Loc;
162 CppHashInfoTy() : Filename(), LineNumber(0), Loc(), Buf(0) {}
306 void printMessage(SMLoc Loc, SourceMgr::DiagKind Kind, const Twine &Msg,
309 SrcMgr.PrintMessage(Loc, Kind, Msg, Ranges);
324 const MCExpr *Count = nullptr, SMLoc Loc = SMLoc());
326 /// Reset the current lexer position to that given by \p Loc. The
332 void jumpToLoc(SMLoc Loc, unsigned InBuffer = 0);
799 const MCExpr *Count, SMLoc Loc) {
812 return Error(Loc, "expected absolute expression");
814 return Warning(Loc, "negative count has no effect");
821 void AsmParser::jumpToLoc(SMLoc Loc, unsigned InBuffer) {
822 CurBuffer = InBuffer ? InBuffer : SrcMgr.FindBufferContainingLoc(Loc);
824 Loc.getPointer());
1184 SMLoc Loc = getTok().getLoc();
1206 return Error(Loc, "directional label undefined");
1207 DirLabels.push_back(std::make_tuple(Loc, CppHashInfo, Sym));
2257 SrcMgr.FindLineNumber(CppHashInfo.Loc, CppHashInfo.Buf);
2316 CppHashInfo.Loc = L;
2335 Parser->SrcMgr.FindBufferContainingLoc(Parser->CppHashInfo.Loc);
2359 // CppHashInfo.Loc and CppHashInfo.LineNumber relative to this Diag's SMLoc
2365 Parser->SrcMgr.FindLineNumber(Parser->CppHashInfo.Loc, CppHashBuf);
3493 SMLoc Loc = getTok().getLoc();
3495 check(FileNumber < 1 && Ctx.getDwarfVersion() < 5, Loc,
3497 check(!getContext().isValidDwarfFileNumber(FileNumber), Loc,
3523 SMLoc Loc = getTok().getLoc();
3534 Loc = getTok().getLoc();
3546 return Error(Loc, "is_stmt value not 0 or 1");
3548 return Error(Loc, "is_stmt value not the constant value of 0 or 1");
3551 Loc = getTok().getLoc();
3559 return Error(Loc, "isa number less than zero");
3562 return Error(Loc, "isa number not a constant value");
3568 return Error(Loc, "unknown sub-directive in '.loc' directive");
3630 SMLoc Loc;
3631 return parseTokenLoc(Loc) ||
3634 check(FunctionId < 0 || FunctionId >= UINT_MAX, Loc,
3639 SMLoc Loc;
3640 return parseTokenLoc(Loc) ||
3643 check(FileNumber < 1, Loc, "file number less than one in '" +
3645 check(!getCVContext().isValidFileNumber(FileNumber), Loc,
3764 SMLoc Loc = getTok().getLoc();
3770 Loc = getTok().getLoc();
3780 return Error(Loc, "is_stmt value not 0 or 1");
3782 return Error(Loc, "unknown sub-directive in '.cv_loc' directive");
3801 SMLoc Loc = getTok().getLoc();
3805 parseTokenLoc(Loc) || check(parseIdentifier(FnStartName), Loc,
3809 parseTokenLoc(Loc) || check(parseIdentifier(FnEndName), Loc,
3825 SMLoc Loc = getTok().getLoc();
3827 parseTokenLoc(Loc) ||
3831 check(SourceFileId <= 0, Loc,
3833 parseTokenLoc(Loc) ||
3837 check(SourceLineNum < 0, Loc,
3839 parseTokenLoc(Loc) || check(parseIdentifier(FnStartName), Loc,
3841 parseTokenLoc(Loc) || check(parseIdentifier(FnEndName), Loc,
3866 SMLoc Loc;
3869 Loc = getLexer().getLoc();
3872 return Error(Loc, "expected identifier in directive");
3875 Loc = getLexer().getLoc();
3878 return Error(Loc, "expected identifier in directive");
3889 return Error(Loc, "expected def_range type in directive");
3902 return Error(Loc, "expected register number");
3915 return Error(Loc, "expected offset value");
3928 return Error(Loc, "expected register number");
3932 return Error(Loc, "expected offset value");
3948 return Error(Loc, "expected register value");
3953 return Error(Loc, "expected flag value");
3957 return Error(Loc, "expected base pointer offset value");
3967 return Error(Loc, "unexpected def_range type in .cv_def_range directive");
4630 SMLoc Loc;
4631 if (parseTokenLoc(Loc) ||
4632 check(parseIdentifier(Name), Loc,
4676 SMLoc Loc = getTok().getLoc();
4681 if (check(parseIdentifier(Option), Loc, kInvalidOptionError) ||
4682 check(Option != "align_to_end", Loc, kInvalidOptionError) ||
4851 SMLoc Loc = getTok().getLoc();
4853 return Error(Loc, "expected identifier");
4858 return Error(Loc, "non-local symbol required");
4861 return Error(Loc, "unable to emit symbol attribute");
4949 SMLoc Loc = getLexer().getLoc();
4957 return Error(Loc, ".abort detected. Assembly stopping.");
4959 return Error(Loc, ".abort '" + Str + "' detected. Assembly stopping.");
5741 if (AsmRewriteA->Loc.getPointer() < AsmRewriteB->Loc.getPointer())
5743 if (AsmRewriteB->Loc.getPointer() < AsmRewriteA->Loc.getPointer())
5905 const char *Loc = AR.Loc.getPointer();
5906 assert(Loc >= AsmStart && "Expected Loc to be at or after Start!");
5909 if (unsigned Len = Loc - AsmStart)
5914 AsmStart = Loc + AR.Len;
5943 return FusingAR.Loc == OffsetLoc && FusingAR.Len == OffsetLen &&
6013 AsmStart = Loc + AR.Len + AdditionalSkip;