Lines Matching refs:Loc
56 uptr Loc = StackTrace::GetPreviousInstructionPc(CallerLoc);
57 return getFunctionLocation(Loc, 0);
60 Location __ubsan::getFunctionLocation(uptr Loc, const char **FName) {
61 if (!Loc)
66 if (!Symbolizer::GetOrInit()->SymbolizePC(Loc, &Info, 1) ||
68 return Location(Loc);
108 static void renderLocation(Location Loc) {
110 switch (Loc.getKind()) {
112 SourceLocation SLoc = Loc.getSourceLocation();
121 PrintModuleAndOffset(&LocBuffer, Loc.getModuleLocation().getModuleName(),
122 Loc.getModuleLocation().getOffset());
125 LocBuffer.append("%p", Loc.getMemoryLocation());
183 /// Find the earliest-starting range in Ranges which ends after Loc.
184 static Range *upperBound(MemoryLocation Loc, Range *Ranges,
188 if (Ranges[I].getEnd().getMemoryLocation() > Loc &&
197 static void renderMemorySnippet(const Decorator &Decor, MemoryLocation Loc,
203 // Show at least the 8 bytes surrounding Loc.
204 MemoryLocation Min = Loc - MinBytesNearLoc, Max = Loc + MinBytesNearLoc;
210 // If we have too many interesting bytes, prefer to show bytes after Loc.
212 Min = __sanitizer::Min(Max - BytesToShow, Loc - MinBytesNearLoc);
230 if (!InRange && P > Loc)
236 char Buffer[] = { Pad, Pad, P == Loc ? '^' : Byte, Byte, 0 };
282 renderLocation(Loc);
299 if (Loc.isMemoryLocation())
300 renderMemorySnippet(Decor, Loc.getMemoryLocation(), Ranges,