[Lldb-commits] [lldb] [lldb] Override default struct layout when building register types (PR #189590)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Fri Apr 17 02:12:09 PDT 2026


https://github.com/Michael137 commented:

So basically you're creating types whose field orders don't necessarily match the source, and hence you don't want to pollute the existing TypeSystem with those? Yes, that seems like a reasonable use-case for an "isolated AST". Would you ever need to mix types from the "registers AST" with types from the default AST? Might be worth playing around with expressions. We have a `ExternalSemaSourceWithPriorities` that multiplexes between different AST sources. IIRC it was introduced for the `CppModules` AST, so it can vend decls with higher priority than the other ASTs. But if one AST can't produce a decl, it falls back to the other AST. Just want to make sure we audited that whole infra

https://github.com/llvm/llvm-project/pull/189590


More information about the lldb-commits mailing list