Lines Matching refs:DILocation

17 DebugLoc::DebugLoc(const DILocation *L) : Loc(const_cast<DILocation *>(L)) {}  in DebugLoc()
20 DILocation *DebugLoc::get() const { in get()
21 return cast_or_null<DILocation>(Loc.get()); in get()
39 DILocation *DebugLoc::getInlinedAt() const { in getInlinedAt()
45 return cast<DILocation>(Loc)->getInlinedAtScope(); in getInlinedAtScope()
52 return DILocation::get(SP->getContext(), SP->getScopeLine(), 0, SP); in getFnDebugLoc()
58 if (DILocation *Loc = get()) { in isImplicitCode()
65 if (DILocation *Loc = get()) { in setImplicitCode()
73 SmallVector<DILocation *> LocChain; in replaceInlinedAtSubprogram()
74 DILocation *CachedResult = nullptr; in replaceInlinedAtSubprogram()
78 for (DILocation *Loc = RootLoc; Loc; Loc = Loc->getInlinedAt()) { in replaceInlinedAtSubprogram()
80 CachedResult = cast<DILocation>(It->second); in replaceInlinedAtSubprogram()
86 DILocation *UpdatedLoc = CachedResult; in replaceInlinedAtSubprogram()
90 DILocation *LocToUpdate = LocChain.pop_back_val(); in replaceInlinedAtSubprogram()
93 UpdatedLoc = DILocation::get(Ctx, LocToUpdate->getLine(), in replaceInlinedAtSubprogram()
100 for (const DILocation *LocToUpdate : reverse(LocChain)) { in replaceInlinedAtSubprogram()
102 DILocation::get(Ctx, LocToUpdate->getLine(), LocToUpdate->getColumn(), in replaceInlinedAtSubprogram()
110 DebugLoc DebugLoc::appendInlinedAt(const DebugLoc &DL, DILocation *InlinedAt, in appendInlinedAt()
113 SmallVector<DILocation *, 3> InlinedAtLocations; in appendInlinedAt()
114 DILocation *Last = InlinedAt; in appendInlinedAt()
115 DILocation *CurInlinedAt = DL; in appendInlinedAt()
118 while (DILocation *IA = CurInlinedAt->getInlinedAt()) { in appendInlinedAt()
121 Last = cast<DILocation>(Found); in appendInlinedAt()
132 for (const DILocation *MD : reverse(InlinedAtLocations)) in appendInlinedAt()
133 Cache[MD] = Last = DILocation::getDistinct( in appendInlinedAt()