[Lldb-commits] [lldb] [WIP] [lldb][TypeSystemClang] Create clang::SourceLocation from DWARF and attach to AST (PR #127829)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Wed Feb 26 02:59:39 PST 2025
Michael137 wrote:
> Why do we need to touch source files to add a source file attribution from debug info to a declaration? We don't require the actual presence of source files in order to make source file attributions anywhere else in the debug info handling. Jim
A `clang::SourceLocation` is an offset into the file. From DWARF we only have column and line numbers. So when we turn the `DW_AT_decl_line`/`DW_AT_decl_column` values into a `SourceLocation`, we use clang to do that transformation, which requires opening the file and inspecting in the contents. Haven't found a good way to do this lazily yet
https://github.com/llvm/llvm-project/pull/127829
More information about the lldb-commits
mailing list