diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2024-01-16 21:09:23 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-16 21:09:23 -0800 |
commit | 933c25e558e6d0d8766d024a329d003a8d4c1162 (patch) | |
tree | b094094e622eb852fdfb54dc7fb60f67cc7499ca /lldb/source/Commands/CommandObjectSource.cpp | |
parent | 3e0d71cdf4a406c6a1de825cf69d889d97ede46b (diff) | |
download | llvm-933c25e558e6d0d8766d024a329d003a8d4c1162.zip llvm-933c25e558e6d0d8766d024a329d003a8d4c1162.tar.gz llvm-933c25e558e6d0d8766d024a329d003a8d4c1162.tar.bz2 |
[lldb] Store SupportFile in LineEntry (NFC) (#77999)
Store a SupportFile, rather than a FileSpec, in LineEntry. This commit
works towards having the SourceManageroperate on SupportFiles so that it
can (1) validate the Checksum and (2) materialize the content of inline
source information.
Diffstat (limited to 'lldb/source/Commands/CommandObjectSource.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectSource.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectSource.cpp b/lldb/source/Commands/CommandObjectSource.cpp index cabf6f0..fde74f0 100644 --- a/lldb/source/Commands/CommandObjectSource.cpp +++ b/lldb/source/Commands/CommandObjectSource.cpp @@ -747,13 +747,13 @@ protected: bool operator==(const SourceInfo &rhs) const { return function == rhs.function && - line_entry.original_file == rhs.line_entry.original_file && + *line_entry.original_file_sp == *rhs.line_entry.original_file_sp && line_entry.line == rhs.line_entry.line; } bool operator!=(const SourceInfo &rhs) const { return function != rhs.function || - line_entry.original_file != rhs.line_entry.original_file || + *line_entry.original_file_sp != *rhs.line_entry.original_file_sp || line_entry.line != rhs.line_entry.line; } |