aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectSource.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <adrian-prantl@users.noreply.github.com>2024-01-04 09:04:05 -0800
committerGitHub <noreply@github.com>2024-01-04 09:04:05 -0800
commit917b404e2ccdcc31d2d64971ad094b80967a240b (patch)
treefc582e00f70df3b8a349b05270ae5fc5356ba514 /lldb/source/Commands/CommandObjectSource.cpp
parenta7a78fd427569a7ad8a27e682a66fe414f004a35 (diff)
downloadllvm-917b404e2ccdcc31d2d64971ad094b80967a240b.zip
llvm-917b404e2ccdcc31d2d64971ad094b80967a240b.tar.gz
llvm-917b404e2ccdcc31d2d64971ad094b80967a240b.tar.bz2
Add support for inline DWARF source files. (#75880)
LLVM supports DWARF 5 linetable extension to store source files inline in DWARF. This is particularly useful for compiler-generated source code. This implementation tries to materialize them as temporary files lazily, so SBAPI clients don't need to be aware of them. rdar://110926168
Diffstat (limited to 'lldb/source/Commands/CommandObjectSource.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectSource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectSource.cpp b/lldb/source/Commands/CommandObjectSource.cpp
index db158a7..cabf6f0 100644
--- a/lldb/source/Commands/CommandObjectSource.cpp
+++ b/lldb/source/Commands/CommandObjectSource.cpp
@@ -204,7 +204,7 @@ protected:
if (cu) {
assert(file_spec.GetFilename().AsCString());
bool has_path = (file_spec.GetDirectory().AsCString() != nullptr);
- const FileSpecList &cu_file_list = cu->GetSupportFiles();
+ const SupportFileList &cu_file_list = cu->GetSupportFiles();
size_t file_idx = cu_file_list.FindFileIndex(0, file_spec, has_path);
if (file_idx != UINT32_MAX) {
// Update the file to how it appears in the CU.