• Home
  • Raw
  • Download

Lines Matching refs:Entries

199   std::vector<LineEntry> &Entries = LineEntries[FID];  in AddLineNote()  local
201 assert((Entries.empty() || Entries.back().FileOffset < Offset) && in AddLineNote()
207 if (!Entries.empty()) { in AddLineNote()
211 FilenameID = Entries.back().FilenameID; in AddLineNote()
215 Kind = Entries.back().FileKind; in AddLineNote()
216 IncludeOffset = Entries.back().IncludeOffset; in AddLineNote()
219 Entries.push_back(LineEntry::get(Offset, LineNo, FilenameID, Kind, in AddLineNote()
234 std::vector<LineEntry> &Entries = LineEntries[FID]; in AddLineNote() local
236 assert((Entries.empty() || Entries.back().FileOffset < Offset) && in AddLineNote()
241 IncludeOffset = Entries.empty() ? 0 : Entries.back().IncludeOffset; in AddLineNote()
245 assert(!Entries.empty() && Entries.back().IncludeOffset && in AddLineNote()
251 FindNearestLineEntry(FID, Entries.back().IncludeOffset)) in AddLineNote()
255 Entries.push_back(LineEntry::get(Offset, LineNo, FilenameID, FileKind, in AddLineNote()
264 const std::vector<LineEntry> &Entries = LineEntries[FID]; in FindNearestLineEntry() local
265 assert(!Entries.empty() && "No #line entries for this FID after all!"); in FindNearestLineEntry()
269 if (Entries.back().FileOffset <= Offset) in FindNearestLineEntry()
270 return &Entries.back(); in FindNearestLineEntry()
274 std::upper_bound(Entries.begin(), Entries.end(), Offset); in FindNearestLineEntry()
275 if (I == Entries.begin()) return 0; in FindNearestLineEntry()
282 const std::vector<LineEntry> &Entries) { in AddEntry() argument
283 LineEntries[FID] = Entries; in AddEntry()