[Lldb-commits] [lldb] Use `llvm::APInt` for `VariantMember` Discriminants (PR #188487)
via lldb-commits
lldb-commits at lists.llvm.org
Tue Apr 14 06:18:53 PDT 2026
Walnut356 wrote:
>Compiled with `rustc main.rs -g -C panic=abort -C link-arg=-nostdlib` on x86_64 Linux yields a 5.8K object file and 12K obj2yaml'd file.
Ah yeah, the smallest I can get even with that is ~30k. I don't have ready access to Linux at the moment, and cross-compiling without `--emit=obj` gives me linker errors that I don't really want to deal with atm.
In terms of testing logic, I straight up don't know enough about DWARF to test with the kind of elegance that the other tests have. It looks like they're running individual tags through specific functions? I can hack something together with `SymbolFile::FindTypes` and inspect the type from there, but it won't be pretty.
That lack of DWARF knowledge also means I'm not sure what (if anything) i can manually rip out of the YAML and still have the test function. Would it be fine to just pop the whole file into the `inputs` folder with the other yaml files? I've had non-minimized files rejected before so I'd like to be sure.
Also, something I noticed while fiddling with the test data, is there any reason why `TypeList` advertises [a `FindTypes` function](https://github.com/llvm/llvm-project/blob/be1f7941b851427be01abac112057a50f8d333d2/lldb/include/lldb/Symbol/TypeList.h#L31) despite [the implementation being commented out](https://github.com/llvm/llvm-project/blob/be1f7941b851427be01abac112057a50f8d333d2/lldb/source/Symbol/TypeList.cpp#L46)?
https://github.com/llvm/llvm-project/pull/188487
More information about the lldb-commits
mailing list