Home
last modified time | relevance | path

Searched refs:LineEntry (Results 1 – 25 of 59) sorted by relevance

123

/llvm-project-15.0.7/lldb/source/API/
H A DSBLineEntry.cpp32 m_opaque_up = std::make_unique<LineEntry>(*lldb_object_ptr); in SBLineEntry()
44 m_opaque_up = std::make_unique<LineEntry>(lldb_object_ref); in SetLineEntry()
131 lldb_private::LineEntry *lhs_ptr = m_opaque_up.get(); in operator ==()
132 lldb_private::LineEntry *rhs_ptr = rhs.m_opaque_up.get(); in operator ==()
135 return lldb_private::LineEntry::Compare(*lhs_ptr, *rhs_ptr) == 0; in operator ==()
143 lldb_private::LineEntry *lhs_ptr = m_opaque_up.get(); in operator !=()
144 lldb_private::LineEntry *rhs_ptr = rhs.m_opaque_up.get(); in operator !=()
147 return lldb_private::LineEntry::Compare(*lhs_ptr, *rhs_ptr) != 0; in operator !=()
152 const lldb_private::LineEntry *SBLineEntry::operator->() const { in operator ->()
156 lldb_private::LineEntry &SBLineEntry::ref() { in ref()
[all …]
H A DSBCompileUnit.cpp71 LineEntry line_entry; in GetLineEntryAtIndex()
87 LineEntry found_line_entry; in FindLineEntryIndex()
115 LineEntry line_entry; in FindLineEntryIndex()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DSourceManagerInternals.h32 struct LineEntry { struct
52 static LineEntry get(unsigned Offs, unsigned Line, int Filename, in get() argument
55 LineEntry E; in get()
66 inline bool operator<(const LineEntry &lhs, const LineEntry &rhs) {
71 inline bool operator<(const LineEntry &E, unsigned Offset) {
75 inline bool operator<(unsigned Offset, const LineEntry &E) {
92 std::map<FileID, std::vector<LineEntry>> LineEntries;
118 const LineEntry *FindNearestLineEntry(FileID FID, unsigned Offset);
121 using iterator = std::map<FileID, std::vector<LineEntry>>::iterator;
128 void AddEntry(FileID FID, const std::vector<LineEntry> &Entries);
/llvm-project-15.0.7/llvm/include/llvm/DebugInfo/GSYM/
H A DLineEntry.h22 struct LineEntry { struct
26 LineEntry(uint64_t A = 0, uint32_t F = 0, uint32_t L = 0) argument
31 inline raw_ostream &operator<<(raw_ostream &OS, const LineEntry &LE) { argument
36 inline bool operator==(const LineEntry &LHS, const LineEntry &RHS) {
39 inline bool operator!=(const LineEntry &LHS, const LineEntry &RHS) {
42 inline bool operator<(const LineEntry &LHS, const LineEntry &RHS) {
H A DLineTable.h119 typedef std::vector<gsym::LineEntry> Collection;
139 static Expected<LineEntry> lookup(DataExtractor &Data, uint64_t BaseAddr,
173 Optional<LineEntry> first() const { in first()
182 Optional<LineEntry> last() const { in last()
187 void push(const LineEntry &LE) { in push()
196 LineEntry &get(size_t i) { in get()
200 const LineEntry &get(size_t i) const { in get()
204 LineEntry &operator[](size_t i) {
207 const LineEntry &operator[](size_t i) const {
/llvm-project-15.0.7/lldb/source/Symbol/
H A DLineEntry.cpp16 LineEntry::LineEntry() in LineEntry() function in LineEntry
20 LineEntry::LineEntry(const lldb::SectionSP &section_sp, in LineEntry() function in LineEntry
33 void LineEntry::Clear() { in Clear()
46 bool LineEntry::IsValid() const { in IsValid()
50 bool LineEntry::DumpStopContext(Stream *s, bool show_fullpaths) const { in DumpStopContext()
70 bool LineEntry::Dump(Stream *s, Target *target, bool show_file, in Dump()
153 bool lldb_private::operator<(const LineEntry &a, const LineEntry &b) { in operator <()
154 return LineEntry::Compare(a, b) < 0; in operator <()
157 int LineEntry::Compare(const LineEntry &a, const LineEntry &b) { in Compare()
192 AddressRange LineEntry::GetSameLineContiguousAddressRange( in GetSameLineContiguousAddressRange()
[all …]
H A DLineTable.cpp179 bool LineTable::GetLineEntryAtIndex(uint32_t idx, LineEntry &line_entry) { in GetLineEntryAtIndex()
189 LineEntry &line_entry, in FindLineEntryByAddress()
261 LineEntry &line_entry) { in ConvertEntryAtIndexToLineEntry()
307 const SourceLocationSpec &src_location_spec, LineEntry *line_entry_ptr) { in FindLineEntryIndexByFileIndex()
318 const SourceLocationSpec &src_location_spec, LineEntry *line_entry_ptr) { in FindLineEntryIndexByFileIndex()
359 LineEntry line_entry; in Dump()
373 LineEntry line_entry; in GetDescription()
388 LineEntry line_entry; in GetContiguousFileAddressRanges()
410 LineEntry line_entry; in LinkLineTable()
H A DFunction.cpp263 LineEntry line_entry; in GetStartLineSourceInfo()
286 LineEntry line_entry; in GetEndLineSourceInfo()
536 LineEntry first_line_entry; in GetPrologueByteSize()
555 LineEntry line_entry; in GetPrologueByteSize()
575 LineEntry line_entry; in GetPrologueByteSize()
602 LineEntry line_entry; in GetPrologueByteSize()
616 LineEntry first_non_zero_entry; in GetPrologueByteSize()
H A DSymbolContext.cpp33 Block *b, LineEntry *le, Symbol *s) in SymbolContext()
42 LineEntry *le, Symbol *s) in SymbolContext()
371 LineEntry::Compare(lhs.line_entry, rhs.line_entry) == 0 && in operator ==()
671 LineEntry SymbolContext::GetFunctionStartLineEntry() const { in GetFunctionStartLineEntry()
672 LineEntry line_entry; in GetFunctionStartLineEntry()
681 return LineEntry(); in GetFunctionStartLineEntry()
691 return LineEntry(); in GetFunctionStartLineEntry()
713 LineEntry this_line; in GetAddressRangeFromHereToEndLine()
718 if (LineEntry::Compare(this_line, line_entry) == 0) { in GetAddressRangeFromHereToEndLine()
724 LineEntry end_entry; in GetAddressRangeFromHereToEndLine()
/llvm-project-15.0.7/lldb/include/lldb/Symbol/
H A DLineEntry.h20 struct LineEntry { struct
24 LineEntry();
26 LineEntry(const lldb::SectionSP &section_sp, lldb::addr_t section_offset,
98 static int Compare(const LineEntry &lhs, const LineEntry &rhs);
174 bool operator<(const LineEntry &lhs, const LineEntry &rhs);
H A DLineTable.h122 bool FindLineEntryByAddress(const Address &so_addr, LineEntry &line_entry,
158 LineEntry *line_entry_ptr);
162 const SourceLocationSpec &src_location_spec, LineEntry *line_entry_ptr);
178 bool GetLineEntryAtIndex(uint32_t idx, LineEntry &line_entry);
336 bool ConvertEntryAtIndexToLineEntry(uint32_t idx, LineEntry &line_entry);
345 const SourceLocationSpec &src_location_spec, LineEntry *line_entry_ptr, in FindLineEntryIndexByFileIndexImpl()
H A DSymbolContext.h75 LineEntry *line_entry = nullptr,
82 LineEntry *line_entry = nullptr,
292 LineEntry GetFunctionStartLineEntry() const;
322 LineEntry line_entry; ///< The LineEntry for a given query
/llvm-project-15.0.7/lldb/include/lldb/API/
H A DSBLineEntry.h55 lldb_private::LineEntry *get();
63 const lldb_private::LineEntry *operator->() const;
65 lldb_private::LineEntry &ref();
67 const lldb_private::LineEntry &ref() const;
69 SBLineEntry(const lldb_private::LineEntry *lldb_object_ptr);
71 void SetLineEntry(const lldb_private::LineEntry &lldb_object_ref);
73 std::unique_ptr<lldb_private::LineEntry> m_opaque_up;
/llvm-project-15.0.7/llvm/lib/DebugInfo/GSYM/
H A DLineTable.cpp52 typedef std::function<bool(const LineEntry &Row)> LineEntryCallback;
70 LineEntry Row(BaseAddr, 1, FirstLine); in parse()
193 LineEntry Prev(BaseAddr, 1, Lines.front().Line); in encode()
254 llvm::Error Err = parse(Data, BaseAddr, [&](const LineEntry &Row) -> bool { in decode()
266 Expected<LineEntry> LineTable::lookup(DataExtractor &Data, uint64_t BaseAddr, uint64_t Addr) { in lookup()
267 LineEntry Result; in lookup()
269 [Addr, &Result](const LineEntry &Row) -> bool { in lookup()
290 for (const auto &LineEntry : LT) in operator <<() local
291 OS << LineEntry << '\n'; in operator <<()
H A DFunctionInfo.cpp181 Optional<LineEntry> LineEntry; in lookup() local
202 LineEntry = ExpectedLE.get(); in lookup()
219 if (!LineEntry) { in lookup()
229 Optional<FileEntry> LineEntryFile = GR.getFile(LineEntry->File); in lookup()
233 LineEntry->File); in lookup()
240 SrcLoc.Line = LineEntry->Line; in lookup()
/llvm-project-15.0.7/llvm/unittests/DebugInfo/GSYM/
H A DGSYMTest.cpp266 LineEntry Line0(FuncAddr + 0x000, FileIdx, 10); in AddLines()
267 LineEntry Line1(FuncAddr + 0x010, FileIdx, 11); in AddLines()
268 LineEntry Line2(FuncAddr + 0x100, FileIdx, 1000); in AddLines()
527 LineEntry Invalid; in TEST()
533 LineEntry E1(ValidAddr, ValidFileIdx, ValidLine); in TEST()
534 LineEntry E2(ValidAddr, ValidFileIdx, ValidLine); in TEST()
696 LineEntry Line0(StartAddr+0x000, FileIdx, 10); in TEST()
697 LineEntry Line1(StartAddr+0x010, FileIdx, 11); in TEST()
698 LineEntry Line2(StartAddr+0x100, FileIdx, 1000); in TEST()
811 LineEntry Line0(BaseAddr+0x000, FileIdx, 10); in TEST()
[all …]
/llvm-project-15.0.7/lldb/test/Shell/SymbolFile/NativePDB/
H A Dlocal-variables-registers.s36 # CHECK: LineEntry: [0x0000000140001000-0x0000000140001003): C:\src\test\a.cpp:10
41 # CHECK: LineEntry: [0x0000000140001003-0x0000000140001006): C:\src\test\a.cpp:11
45 # CHECK: LineEntry: [0x0000000140001006-0x0000000140001011): C:\src\test\a.cpp:12
49 # CHECK: LineEntry: [0x0000000140001011-0x0000000140001015): C:\src\test\a.cpp:15
54 # CHECK: LineEntry: [0x0000000140001017-0x000000014000101e): C:\src\test\a.cpp:17
59 # CHECK: LineEntry: [0x0000000140001017-0x000000014000101e): C:\src\test\a.cpp:17
63 # CHECK: LineEntry: [0x000000014000101e-0x0000000140001031): C:\src\test\a.cpp:18
67 # CHECK: LineEntry: [0x000000014000101e-0x0000000140001031): C:\src\test\a.cpp:18
H A Dinline_sites.test59 # CHECK: LineEntry: [0x0000000140001000-0x0000000140001004): /tmp/a.cpp:2
69 # CHECK: LineEntry: [0x0000000140001004-0x000000014000100c): /tmp/a.h:5
81 # CHECK: LineEntry: [0x0000000140001010-0x0000000140001018): /tmp/a.h:7
95 # CHECK: LineEntry: [0x000000014000101c-0x0000000140001022): /tmp/b.h:5
113 # CHECK: LineEntry: [0x000000014000102a-0x0000000140001031): /tmp/c.h:5
126 # CHECK: LineEntry: [0x0000000140001039-0x000000014000103d): /tmp/a.cpp:3
136 # CHECK: LineEntry: [0x0000000140001044-0x0000000140001046): /tmp/a.h:8
/llvm-project-15.0.7/llvm/lib/MC/
H A DMCDwarf.cpp113 .addLineEntry(LineEntry, Section); in make()
186 MCSymbol *Label = LineEntry.getLabel(); in emitOne()
188 if (LineEntry.IsEndEntry) { in emitOne()
198 if (FileNum != LineEntry.getFileNum()) { in emitOne()
199 FileNum = LineEntry.getFileNum(); in emitOne()
203 if (Column != LineEntry.getColumn()) { in emitOne()
204 Column = LineEntry.getColumn(); in emitOne()
217 if (Isa != LineEntry.getIsa()) { in emitOne()
218 Isa = LineEntry.getIsa(); in emitOne()
223 Flags = LineEntry.getFlags(); in emitOne()
[all …]
H A DMCCodeView.cpp266 void CodeViewContext::addLineEntry(const MCCVLoc &LineEntry) { in addLineEntry() argument
269 {LineEntry.getFunctionId(), {Offset, Offset + 1}}); in addLineEntry()
272 MCCVLines.push_back(LineEntry); in addLineEntry()
343 bool HaveColumns = any_of(Locs, [](const MCCVLoc &LineEntry) { in emitLineTableForFunction() argument
344 return LineEntry.getColumn() != 0; in emitLineTableForFunction()
/llvm-project-15.0.7/bolt/lib/Core/
H A DDebugData.cpp1467 if (FileNum != LineEntry.getFileNum()) { in emitDwarfLineTable()
1468 FileNum = LineEntry.getFileNum(); in emitDwarfLineTable()
1472 if (Column != LineEntry.getColumn()) { in emitDwarfLineTable()
1473 Column = LineEntry.getColumn(); in emitDwarfLineTable()
1479 Discriminator = LineEntry.getDiscriminator(); in emitDwarfLineTable()
1486 if (Isa != LineEntry.getIsa()) { in emitDwarfLineTable()
1487 Isa = LineEntry.getIsa(); in emitDwarfLineTable()
1492 Flags = LineEntry.getFlags(); in emitDwarfLineTable()
1495 if (LineEntry.getFlags() & DWARF2_FLAG_BASIC_BLOCK) in emitDwarfLineTable()
1502 MCSymbol *Label = LineEntry.getLabel(); in emitDwarfLineTable()
[all …]
/llvm-project-15.0.7/lldb/source/Target/
H A DThreadPlanStepOverRange.cpp232 LineEntry line_entry; in ShouldStop()
235 LineEntry next_line_entry; in ShouldStop()
244 LineEntry prev_line_entry; in ShouldStop()
H A DTraceDumper.cpp43 static bool IsLineEntryValid(const LineEntry &line_entry) { in IsLineEntryValid()
50 static bool FileLineAndColumnMatches(const LineEntry &a, const LineEntry &b) { in FileLineAndColumnMatches()
/llvm-project-15.0.7/lldb/include/lldb/Core/
H A DAddress.h30 struct LineEntry;
491 bool CalculateSymbolContextLineEntry(LineEntry &line_entry) const;
/llvm-project-15.0.7/llvm/lib/DebugInfo/PDB/
H A DPDBContext.cpp87 DILineInfo LineEntry = getLineInfoForAddress( in getLineInfoForAddressRange() local
89 Table.push_back(std::make_pair(LineInfo->getVirtualAddress(), LineEntry)); in getLineInfoForAddressRange()

123