@return
The index of the user-provided line entry. UINT32_MAX if the line entry
- was not found in the compile unit.") GetIndexForLineEntry;
+ was not found in the compile unit.") FindLineEntryIndex;
uint32_t
- GetIndexForLineEntry (lldb::SBLineEntry &line_entry, bool exact = false) const;
+ FindLineEntryIndex (lldb::SBLineEntry &line_entry, bool exact = false) const;
uint32_t
FindLineEntryIndex (uint32_t start_idx,
lldb::SBLineEntry GetLineEntryAtIndex(uint32_t idx) const;
- uint32_t GetIndexForLineEntry(lldb::SBLineEntry &line_entry,
- bool exact = false) const;
+ uint32_t FindLineEntryIndex(lldb::SBLineEntry &line_entry,
+ bool exact = false) const;
uint32_t FindLineEntryIndex(uint32_t start_idx, uint32_t line,
lldb::SBFileSpec *inline_file_spec) const;
return sb_line_entry;
}
-uint32_t SBCompileUnit::GetIndexForLineEntry(lldb::SBLineEntry &line_entry,
- bool exact) const {
+uint32_t SBCompileUnit::FindLineEntryIndex(lldb::SBLineEntry &line_entry,
+ bool exact) const {
LLDB_INSTRUMENT_VA(this, line_entry, exact);
if (!m_opaque_ptr || !line_entry.IsValid())
main_cu = sc_list.compile_units[0]
self.assertTrue(main_cu.IsValid(), "Main executable CU is not valid")
- self.assertEqual(main_cu.GetIndexForLineEntry(line_entry, True),
+ self.assertEqual(main_cu.FindLineEntryIndex(line_entry, True),
main_cu.FindLineEntryIndex(0, line_entry.GetLine(),
line_entry.GetFileSpec(), True))