[llvm] [DebugInfo][DWARF] Emit Per-Function Line Table Offsets and End Sequences (PR #110192)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 3 12:30:46 PDT 2024
================
@@ -123,6 +123,9 @@ class MCDwarfLoc {
friend class MCContext;
friend class MCDwarfLineEntry;
+ // DwarfDebug::endFunctionImpl needs to construct MCDwarfLoc(IsEndOfFunction)
+ friend class DwarfDebug;
----------------
alx32 wrote:
I tried to keep this implementation as close to Apple's very similar implementation of `-fcas-friendly-debug-info` in their fork of llvm-project - see [MCDwarf.h in Apple's llvm-project fork](https://github.com/swiftlang/llvm-project/blob/601abd74df1b6cad0690397898a2bd3a27a955e1/llvm/include/llvm/MC/MCDwarf.h#L125) . This to both to try to stick to their proposed pattern and to make it easier to merge the changes later on.
https://github.com/llvm/llvm-project/pull/110192
More information about the llvm-commits
mailing list