[all-commits] [llvm/llvm-project] 58b10d: DebugInfo: Move SectionLabel tracking into CU's ad...

David Blaikie via All-commits all-commits at lists.llvm.org
Fri Jan 17 18:15:49 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 58b10df54ffdbfcd94ca0882a4adea0d375cb69d
      https://github.com/llvm/llvm-project/commit/58b10df54ffdbfcd94ca0882a4adea0d375cb69d
  Author: David Blaikie <dblaikie at gmail.com>
  Date:   2020-01-17 (Fri, 17 Jan 2020)

  Changed paths:
    M llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
    M llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
    M llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h

  Log Message:
  -----------
  DebugInfo: Move SectionLabel tracking into CU's addRange

This makes the SectionLabel handling more resilient - specifically for
future PROPELLER work which will have more CU ranges (rather than just
one per function).

Ultimately it might be nice to make this more general/resilient to
arbitrary labels (rather than relying on the labels being created for CU
ranges & then being reused by ranges, loclists, and possibly other
addresses). It's possible that other (non-rnglist/loclist) uses of
addresses will need the addresses to be in SectionLabels earlier (eg:
move the CU.addRange to be done on function begin, rather than function
end, so during function emission they are already populated for other
use).




More information about the All-commits mailing list