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()
69 void CodeRegions::endRegion(StringRef Description, SMLoc Loc) { in endRegion() argument
77 Regions[It->second]->setEndLocation(Loc); in endRegion()
85 Regions[0]->setEndLocation(Loc); in endRegion()
92 Regions[It->second]->setEndLocation(Loc); in endRegion()
98 SM.PrintMessage(Loc, SourceMgr::DK_Error, in endRegion()
101 SM.PrintMessage(Loc, SourceMgr::DK_Note, in endRegion()
104 SM.PrintMessage(Loc, SourceMgr::DK_Note, in endRegion()
110 SMLoc Loc = Instruction.getLoc(); in addInstruction() local
112 if (Region->isLocInRange(Loc)) in addInstruction()