Lines Matching refs:Loc
24 bool CodeRegion::isLocInRange(SMLoc Loc) const {
25 if (RangeEnd.isValid() && Loc.getPointer() > RangeEnd.getPointer())
27 if (RangeStart.isValid() && Loc.getPointer() < RangeStart.getPointer())
32 void CodeRegions::beginRegion(StringRef Description, SMLoc Loc) {
39 Regions[0] = std::make_unique<CodeRegion>(Description, Loc);
47 SM.PrintMessage(Loc, SourceMgr::DK_Error,
55 SM.PrintMessage(Loc, SourceMgr::DK_Error,
65 Regions.emplace_back(std::make_unique<CodeRegion>(Description, Loc));
69 void CodeRegions::endRegion(StringRef Description, SMLoc Loc) {
77 Regions[It->second]->setEndLocation(Loc);
85 Regions[0]->setEndLocation(Loc);
92 Regions[It->second]->setEndLocation(Loc);
98 SM.PrintMessage(Loc, SourceMgr::DK_Error,
101 SM.PrintMessage(Loc, SourceMgr::DK_Note,
104 SM.PrintMessage(Loc, SourceMgr::DK_Note,
110 SMLoc Loc = Instruction.getLoc();
112 if (Region->isLocInRange(Loc))