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

Alexander Yermolovich via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 2 12:28:31 PST 2024


================
@@ -118,6 +118,28 @@ struct Unit {
   std::vector<Entry> Entries;
 };
 
+struct IdxForm {
+  llvm::dwarf::Index Idx;
+  llvm::dwarf::Form Form;
+};
+
+struct DebugNameAbbreviation {
+  llvm::yaml::Hex64 Code;
+  llvm::dwarf::Tag Tag;
+  std::vector<IdxForm> Indices;
+};
+
+struct DebugNameEntry {
+  llvm::yaml::Hex32 NameStrp;
+  llvm::yaml::Hex64 Code;
+  std::vector<llvm::yaml::Hex64> Values;
+};
+
+struct DebugNamesSection {
+  std::vector<DebugNameAbbreviation> Abbrevs;
----------------
ayermolo wrote:

Ah didn't think of that.

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


More information about the llvm-commits mailing list