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 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits