[llvm] [DWARFYAML] Implement debug_names support (PR #79666)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 5 01:02:15 PST 2024


================
@@ -276,10 +299,26 @@ LLVM_YAML_IS_SEQUENCE_VECTOR(
     llvm::DWARFYAML::ListEntries<DWARFYAML::LoclistEntry>)
 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::DWARFYAML::LoclistEntry)
 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::DWARFYAML::DWARFOperation)
+LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::DWARFYAML::DebugNameEntry)
+LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::DWARFYAML::DebugNameAbbreviation)
+LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::DWARFYAML::IdxForm)
 
 namespace llvm {
 namespace yaml {
 
+template <> struct MappingTraits<DWARFYAML::DebugNamesSection> {
----------------
jh7370 wrote:

Nit: it looks like this part of the file is roughly ordered in the same order as the structs are defined above, which would make this the wrong place to put them. Perhaps move them to after the `Unit` `MappingTraits` for consistency?

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


More information about the llvm-commits mailing list