Lines Matching refs:Loc
24 bool CodeRegion::isLocInRange(SMLoc Loc) const { in isLocInRange()
25 if (RangeEnd.isValid() && Loc.getPointer() > RangeEnd.getPointer()) in isLocInRange()
27 if (RangeStart.isValid() && Loc.getPointer() < RangeStart.getPointer()) in isLocInRange()
32 void CodeRegions::beginRegion(StringRef Description, SMLoc Loc) { in beginRegion() argument
39 Regions[0] = std::make_unique<CodeRegion>(Description, Loc); in beginRegion()
47 SM.PrintMessage(Loc, SourceMgr::DK_Error, in beginRegion()
55 SM.PrintMessage(Loc, SourceMgr::DK_Error, in beginRegion()
65 Regions.emplace_back(std::make_unique<CodeRegion>(Description, Loc)); in beginRegion()
68 void CodeRegions::endRegion(StringRef Description, SMLoc Loc) { in endRegion() argument
76 Regions[It->second]->setEndLocation(Loc); in endRegion()
84 Regions[0]->setEndLocation(Loc); in endRegion()
91 Regions[It->second]->setEndLocation(Loc); in endRegion()
97 SM.PrintMessage(Loc, SourceMgr::DK_Error, in endRegion()
100 SM.PrintMessage(Loc, SourceMgr::DK_Note, in endRegion()
103 SM.PrintMessage(Loc, SourceMgr::DK_Note, in endRegion()
109 SMLoc Loc = Instruction.getLoc(); in addInstruction() local
111 if (Region->isLocInRange(Loc)) in addInstruction()