@@ -158,7 +158,7 @@ class CommandObjectSourceInfo : public CommandObjectParsed {
158158 if (module_list.GetSize () &&
159159 module_list.GetIndexForModule (module ) == LLDB_INVALID_INDEX32)
160160 continue ;
161- if (!FileSpec::Match (file_spec, line_entry.file ))
161+ if (!FileSpec::Match (file_spec, line_entry.GetFile () ))
162162 continue ;
163163 if (start_line > 0 && line_entry.line < start_line)
164164 continue ;
@@ -239,7 +239,7 @@ class CommandObjectSourceInfo : public CommandObjectParsed {
239239 num_matches++;
240240 if (num_lines > 0 && num_matches > num_lines)
241241 break ;
242- assert (cu_file_spec == line_entry.file );
242+ assert (cu_file_spec == line_entry.GetFile () );
243243 if (!cu_header_printed) {
244244 if (num_matches > 0 )
245245 strm << " \n\n " ;
@@ -760,11 +760,11 @@ class CommandObjectSourceList : public CommandObjectParsed {
760760 bool operator <(const SourceInfo &rhs) const {
761761 if (function.GetCString () < rhs.function .GetCString ())
762762 return true ;
763- if (line_entry.file .GetDirectory ().GetCString () <
764- rhs.line_entry .file .GetDirectory ().GetCString ())
763+ if (line_entry.GetFile () .GetDirectory ().GetCString () <
764+ rhs.line_entry .GetFile () .GetDirectory ().GetCString ())
765765 return true ;
766- if (line_entry.file .GetFilename ().GetCString () <
767- rhs.line_entry .file .GetFilename ().GetCString ())
766+ if (line_entry.GetFile () .GetFilename ().GetCString () <
767+ rhs.line_entry .GetFile () .GetFilename ().GetCString ())
768768 return true ;
769769 if (line_entry.line < rhs.line_entry .line )
770770 return true ;
@@ -799,7 +799,7 @@ class CommandObjectSourceList : public CommandObjectParsed {
799799 sc.function ->GetEndLineSourceInfo (end_file, end_line);
800800 } else {
801801 // We have an inlined function
802- start_file = source_info.line_entry .file ;
802+ start_file = source_info.line_entry .GetFile () ;
803803 start_line = source_info.line_entry .line ;
804804 end_line = start_line + m_options.num_lines ;
805805 }
0 commit comments