[all-commits] [llvm/llvm-project] 55a560: [MCDwarf] Generate DWARF v5 .debug_rnglists for as...

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Mar 3 09:06:02 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 55a56041d1da59dacb8f9abb1f3bfa841798e6cc
      https://github.com/llvm/llvm-project/commit/55a56041d1da59dacb8f9abb1f3bfa841798e6cc
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-03-03 (Tue, 03 Mar 2020)

  Changed paths:
    M llvm/include/llvm/MC/MCDwarf.h
    M llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
    M llvm/lib/MC/MCDwarf.cpp
    M llvm/test/MC/ARM/dwarf-asm-multiple-sections.s

  Log Message:
  -----------
  [MCDwarf] Generate DWARF v5 .debug_rnglists for assembly files

```
// clang -c -gdwarf-5 a.s -o a.o
.section .init; ret
.text; ret
```

.debug_info contains DW_AT_ranges and llvm-dwarfdump will report
a verification error because .debug_rnglists does not exist (not
implemented).

This patch generates .debug_rnglists for assembly files.
emitListsTableHeaderStart() in DwarfDebug.cpp can be shared with
MCDwarf.cpp. Because CodeGen depends on MC, I move the function to
MCDwarf.cpp

Reviewed By: probinson

Differential Revision: https://reviews.llvm.org/D75375




More information about the All-commits mailing list