Home
last modified time | relevance | path

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

123

/llvm-project/lldb/source/API/
H A DSBLineEntry.cpp30 SBLineEntry::SBLineEntry(const lldb_private::LineEntry *lldb_object_ptr) { in SBLineEntry()
32 m_opaque_up = std::make_unique<LineEntry>(*lldb_object_ptr); in SBLineEntry()
43 void SBLineEntry::SetLineEntry(const lldb_private::LineEntry &lldb_object_ref) { in SetLineEntry()
44 m_opaque_up = std::make_unique<LineEntry>(lldb_object_ref); in SetLineEntry()
146 lldb_private::LineEntry *lhs_ptr = m_opaque_up.get(); in operator ==()
147 lldb_private::LineEntry *rhs_ptr = rhs.m_opaque_up.get(); in operator ==()
150 return lldb_private::LineEntry::Compare(*lhs_ptr, *rhs_ptr) == 0; in operator ==()
158 lldb_private::LineEntry *lhs_ptr = m_opaque_up.get(); in operator !=()
159 lldb_private::LineEntry *rhs_ptr = rhs.m_opaque_up.get(); in operator !=()
162 return lldb_private::LineEntry::Compare(*lhs_ptr, *rhs_ptr) != 0; in operator !=()
[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/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/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 std::optional<LineEntry> first() const { in first()
182 std::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/lldb/source/Symbol/
H A DLineEntry.cpp16 LineEntry::LineEntry() in LineEntry() function in LineEntry
22 void LineEntry::Clear() { in Clear()
35 bool LineEntry::IsValid() const { in IsValid()
39 bool LineEntry::DumpStopContext(Stream *s, bool show_fullpaths) const { in DumpStopContext()
60 bool LineEntry::Dump(Stream *s, Target *target, bool show_file, in Dump()
95 bool LineEntry::GetDescription(Stream *s, lldb::DescriptionLevel level, in GetDescription()
143 bool lldb_private::operator<(const LineEntry &a, const LineEntry &b) { in operator <()
144 return LineEntry::Compare(a, b) < 0; in operator <()
147 int LineEntry::Compare(const LineEntry &a, const LineEntry &b) { in Compare()
182 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.cpp315 LineEntry line_entry; in GetEndLineSourceInfo()
337 LineEntry line_entry; in GetCallEdges()
602 LineEntry first_line_entry; in GetPrologueByteSize()
620 LineEntry line_entry; in GetPrologueByteSize()
640 LineEntry line_entry; in GetPrologueByteSize()
667 LineEntry line_entry; in GetPrologueByteSize()
681 LineEntry first_non_zero_entry;
H A DSymbolContext.cpp37 Block *b, LineEntry *le, Symbol *s) in SymbolContext()
46 LineEntry *le, Symbol *s) in SymbolContext()
254 s->Indent(" LineEntry: "); in GetDescription()
326 LineEntry::Compare(lhs.line_entry, rhs.line_entry) == 0 && in Dump()
628 LineEntry SymbolContext::GetFunctionStartLineEntry() const { in SortTypeList()
629 LineEntry line_entry; in SortTypeList()
638 return LineEntry(); in SortTypeList()
646 return LineEntry(); in SortTypeList()
666 LineEntry this_line; in GetFunctionName()
671 if (LineEntry in GetFunctionName()
[all...]
H A DCMakeLists.txt15 LineEntry.cpp
/llvm-project/lldb/include/lldb/API/
H A DSBLineEntry.h58 lldb_private::LineEntry *get();
66 const lldb_private::LineEntry *operator->() const;
68 lldb_private::LineEntry &ref();
70 const lldb_private::LineEntry &ref() const;
72 SBLineEntry(const lldb_private::LineEntry *lldb_object_ptr);
74 void SetLineEntry(const lldb_private::LineEntry &lldb_object_ref);
76 std::unique_ptr<lldb_private::LineEntry> m_opaque_up;
/llvm-project/lldb/include/lldb/Symbol/
H A DLineEntry.h21 struct LineEntry { struct
25 LineEntry();
93 static int Compare(const LineEntry &lhs, const LineEntry &rhs);
182 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.h18 #include "lldb/Symbol/LineEntry.h"
68 /// A LineEntry pointer to the line entry for this context.
76 LineEntry *line_entry = nullptr,
83 LineEntry *line_entry = nullptr,
279 LineEntry GetFunctionStartLineEntry() const;
309 LineEntry line_entry; ///< The LineEntry for a given query
/llvm-project/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
46 # CHECK: LineEntry: [0x0000000140001006-0x0000000140001011): C:\src\test\a.cpp:12
50 # CHECK: LineEntry: [0x0000000140001011-0x0000000140001015): C:\src\test\a.cpp:15
55 # CHECK: LineEntry: [0x0000000140001017-0x000000014000101e): C:\src\test\a.cpp:17
60 # CHECK: LineEntry: [0x0000000140001017-0x000000014000101e): C:\src\test\a.cpp:17
64 # CHECK: LineEntry: [0x000000014000101e-0x0000000140001031): C:\src\test\a.cpp:18
68 # CHECK: LineEntry: [0x000000014000101e-0x0000000140001031): C:\src\test\a.cpp:18
408 # CHECK: LineEntry: [0x0000000140001031-0x0000000140001034): C:\src\test\a.cpp:1000
412 # CHECK: LineEntry
[all...]
H A Dinline_sites.test63 # CHECK: LineEntry: [0x0000000140001000-0x0000000140001004): /tmp/a.cpp:2
73 # CHECK: LineEntry: [0x0000000140001004-0x000000014000100c): /tmp/a.h:5
86 # CHECK: LineEntry: [0x0000000140001010-0x0000000140001018): /tmp/a.h:7
101 # CHECK: LineEntry: [0x000000014000101c-0x0000000140001022): /tmp/b.h:5
120 # CHECK: LineEntry: [0x000000014000102a-0x0000000140001031): /tmp/c.h:5
134 # CHECK: LineEntry: [0x0000000140001039-0x000000014000103d): /tmp/a.cpp:3
144 # CHECK: LineEntry: [0x0000000140001044-0x0000000140001046): /tmp/a.h:8
/llvm-project/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()
285 for (const auto &LineEntry : LT) in operator <<() local
286 OS << LineEntry << '\n'; in operator <<()
H A DFunctionInfo.cpp266 std::optional<LineEntry> LineEntry; in lookup()
287 LineEntry = ExpectedLE.get();
328 if (!LineEntry) {
338 std::optional<FileEntry> LineEntryFile = GR.getFile(LineEntry->File);
342 LineEntry->File);
349 SrcLoc.Line = LineEntry->Line;
208 std::optional<LineEntry> LineEntry; lookup() local
/llvm-project/llvm/unittests/DebugInfo/GSYM/
H A DGSYMTest.cpp102 FI.OptLineTable->push(LineEntry(StartAddr,FileIdx,Line)); in TEST()
138 FIWithLines.OptLineTable->push(LineEntry(StartAddr,FileIdx,Line)); in TEST()
169 FIWithMoreLines.OptLineTable->push(LineEntry(StartAddr,FileIdx,Line+5)); in TEST()
282 LineEntry Line0(FuncAddr + 0x000, FileIdx, 10); in AddLines()
283 LineEntry Line1(FuncAddr + 0x010, FileIdx, 11); in AddLines()
284 LineEntry Line2(FuncAddr + 0x100, FileIdx, 1000); in AddLines()
536 // test llvm::gsym::LineEntry structs. in TEST()
542 LineEntry Invalid; in TEST()
545 LineEntry BadFile(ValidAddr, InvalidFileIdx, ValidLine); in TEST()
548 LineEntry E in TEST()
[all...]
/llvm-project/llvm/lib/MC/
H A DMCDwarf.cpp104 MCDwarfLineEntry LineEntry(LineSym, DwarfLoc); in make()
113 .addLineEntry(LineEntry, Section); in make()
187 for (const MCDwarfLineEntry &LineEntry : LineEntries) { in emitOne()
188 MCSymbol *Label = LineEntry.getLabel(); in emitOne()
191 if (LineEntry.LineStreamLabel) { in emitOne()
197 MCOS->emitLabel(LineEntry.LineStreamLabel, LineEntry.StreamLabelDefLoc); in emitOne()
201 if (LineEntry.IsEndEntry) { in emitOne()
209 int64_t LineDelta = static_cast<int64_t>(LineEntry.getLine()) - LastLine; in emitOne()
211 if (FileNum != LineEntry in emitOne()
108 MCDwarfLineEntry LineEntry(LineSym, DwarfLoc); make() local
189 for (const MCDwarfLineEntry &LineEntry : LineEntries) { emitOne() local
[all...]
H A DMCCodeView.cpp251 void CodeViewContext::addLineEntry(const MCCVLoc &LineEntry) { in emitFileChecksumOffset()
254 {LineEntry.getFunctionId(), {Offset, Offset + 1}}); in emitFileChecksumOffset()
257 MCCVLines.push_back(LineEntry); in emitFileChecksumOffset()
351 bool HaveColumns = any_of(Locs, [](const MCCVLoc &LineEntry) { in emitLineTableForFunction()
352 return LineEntry.getColumn() != 0; in emitLineTableForFunction()
263 addLineEntry(const MCCVLoc & LineEntry) addLineEntry() argument
363 __anon449f4a480102(const MCCVLoc &LineEntry) emitLineTableForFunction() argument
/llvm-project/lldb/source/Target/
H A DThreadPlanStepOverRange.cpp248 LineEntry line_entry; in ShouldStop()
251 LineEntry next_line_entry; in ShouldStop()
260 LineEntry prev_line_entry; in ShouldStop()
/llvm-project/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()
/llvm-project/lldb/include/lldb/Core/
H A DAddress.h33 struct LineEntry;
501 bool CalculateSymbolContextLineEntry(LineEntry &line_entry) const;
/llvm-project/llvm/unittests/MC/
H A DDwarfLineTableHeaders.cpp127 MCDwarfLineEntry LineEntry(LineSym, Loc); in emitDebugLineSection()
128 LineEntries.push_back(LineEntry); in emitDebugLineSection()
130 MCDwarfLineEntry LineEntry(LineSym, Loc); emitDebugLineSection() local

123