[PATCH] D54282: [DWARFv5] Emit normal type units in .debug_info comdats.

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 8 16:28:08 PST 2018


dblaikie added inline comments.


================
Comment at: llvm/lib/MC/MCObjectFileInfo.cpp:822
+    return Ctx->getELFSection(
+        DwarfVersion <= 4 ? ".debug_types" : ".debug_info",
+        TT.isMIPS() ? ELF::SHT_MIPS_DWARF : ELF::SHT_PROGBITS,
----------------
Seems odd to have a function for "DwarfTypesSection" return the debug_info section. I'd tend towards having MCObjectFileInfo be more literal than this - getDwarfTypesSection(Hash) and getDwarfInfoSection(Hash), etc.

(a very casual/far-off motivation, is that it'd be great if, eventually, debug_info came to allowing various different entities in comdat'd sections - not just types - this is what some of us have thrown around as "bag of DWARF")


Repository:
  rL LLVM

https://reviews.llvm.org/D54282





More information about the llvm-commits mailing list