[llvm] [LLVM][DWARF] Add support for monolithic types in .debug_names (PR #70515)

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 30 13:57:59 PDT 2023


================
@@ -288,7 +310,19 @@ class DWARF5AccelTable : public AccelTable<DWARF5AccelTableData> {
   void convertDieToOffset() {
     for (auto &Entry : Entries) {
       for (AccelTableData *Value : Entry.second.Values) {
-        static_cast<DWARF5AccelTableData *>(Value)->normalizeDIEToOffset();
+        DWARF5AccelTableData *Data = static_cast<DWARF5AccelTableData *>(Value);
+        if (!Data->isNormalized())
----------------
dwblaikie wrote:

Maybe a comment here explaining that TU entries are normalized early, so some entries (TU entries) might already be normalized here - and we're normalizing the remaining CU entries, if that's the case.

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


More information about the llvm-commits mailing list