dwblaikie wrote:

Rather than a unit test, perhaps this could be tested with llvm-dwarfdump? (I 
think that's how I tested the DWARFTypePrinter during its initial development) 
It's a feature improvement to llvm-dwarfdump - being able to print out names 
better.

I guess most of what I did was more specifically about 
simplified-template-names roundtripping, which this new typedef case isn't 
relevant to (typedefs aren't canonical names, don't themselves get 
simplified/have to be rebuilt).

But the testing was in 
llvm/test/tools/llvm-dwarfdump/X86/simplified-template-names.s (and there's 
similar testing in the cross_project_tests and in clang - so adding the test 
coverage in those places too would be good, if this test file's one that could 
be used for this patch). I guess maybe this testing all only does "verify" 
testing, which means it won't print the typedef qualified name you want to test.

In that case, we have some testing for type printing prior to the 
DWARFTypePrinter work... 

Oh, also - LLVM fixes should be tested in LLVM, not in lldb... 

Probably the most common way to test this would be to add something in 
llvm/test/DebugInfo/X86/dwarfdump-*.ll 

Oh, this test might be where we test most of this in the past: 
llvm/test/tools/llvm-dwarfdump/X86/prettyprint_types.s



https://github.com/llvm/llvm-project/pull/117239
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to