dlav-sc wrote:

> I expect these will be at risk of diverging if done separately

Your concern is reasonable, I see this stuff in two places: 
`DisassemblerLLVMC::DisassemblerLLVMC` and `GetValObjFromFPRegs` in 
`ABISysV_riscv.cpp` (also `ObjectFileELF::GetSectionHeaderInfo` works with 
float flags, but it just parses elf header and takes features from there).

> I wonder if our ArchSpec should have a method to get the clang feature flags.

I've expected that `CompilerInstance` (`m_compiler`) has this method, because 
clang should get features somehow and as I know, it uses march for this 
purposes, but I couldn't find this functionality. As for lldb, maybe it can be 
useful to obtain features flags from `ArchSpec`, but I think this should be 
done in a separate PR, if you don't mind.

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

Reply via email to