llvm-project/llvm/lib/CodeGen/AsmPrinter
Fangrui Song 56fa34ae35 DebugInfo: Temporarily work around -gsplit-dwarf + LTO .debug_gnu_pubnames regression after D94976
`-flto -gsplit-dwarf -g -O[123]` may create .debug_gnu_pubnames with 0 DIE
offset entries. llvm-dwarfdump -debug-gnu-pubnames/ld.lld --gdb-index errors for that.

```
        .section        .debug_gnu_pubnames,"",@progbits
        .long   .LpubNames_end2-.LpubNames_begin2 # Length of Public Names Info
.LpubNames_begin2:
        .short  2                               # DWARF Version
        .long   .Lcu_begin2                     # Offset of Compilation Unit Info
        .long   57                              # Compilation Unit Length
        .long   0                               # DIE offset
        .byte   16                              # Attributes: TYPE, EXTERNAL
        .asciz  "absl"                          # External Name
        .long   0                               # DIE offset
        .byte   16                              # Attributes: TYPE, EXTERNAL
        .asciz  "absl::base_internal"           # External Name
        .long   0                               # End Mark
```
2021-02-04 17:35:09 -08:00
..
AIXException.cpp [XCOFF][AIX] Emit EH information in traceback table 2020-12-16 09:34:59 -05:00
ARMException.cpp [MC] De-capitalize another set of MCStreamer::Emit* functions 2020-02-14 19:26:52 -08:00
AccelTable.cpp [DebugInfo] Make offsets of dwarf units 64-bit (19/19). 2020-09-15 12:23:32 +07:00
AddressPool.cpp [DebugInfo] Fix emitting DWARF64 .debug_addr sections (15/19). 2020-09-15 12:23:31 +07:00
AddressPool.h Recommit "PR44685: DebugInfo: Handle address-use-invalid type units referencing non-type units" 2020-08-18 13:43:28 -07:00
AsmPrinter.cpp [AsmPrinter] Use ListSeparator (NFC) 2021-02-02 22:52:48 -08:00
AsmPrinterDwarf.cpp [XCOFF][AIX] Generate LSDA data and compact unwind section on AIX 2020-12-02 18:42:44 +00:00
AsmPrinterInlineAsm.cpp [AsmPrinter] Use ListSeparator (NFC) 2021-02-02 22:52:48 -08:00
ByteStreamer.h [AsmPrinter] Rename ByteStreamer::EmitInt8 to emitInt8 2020-11-06 20:02:56 -08:00
CMakeLists.txt [CSSPGO] Pseudo probe encoding and emission. 2020-12-10 17:29:28 -08:00
CodeViewDebug.cpp [CodeView] Avoid emitting empty debug globals subsection. 2020-11-25 16:13:32 -08:00
CodeViewDebug.h [CodeView] Remove unused declaration collectInlineSiteChildren (NFC) 2020-11-30 22:28:26 -08:00
DIE.cpp DebugInfo: Add a DWARF FORM extension for addrx+offset references to reduce relocations 2021-01-28 10:20:02 -08:00
DIEHash.cpp DebugInfo: Add a DWARF FORM extension for addrx+offset references to reduce relocations 2021-01-28 10:20:02 -08:00
DIEHash.h DebugInfo: Hash DIE referevences (DW_OP_convert) when computing Split DWARF signatures 2020-10-22 20:09:33 -07:00
DIEHashAttributes.def
DbgEntityHistoryCalculator.cpp Revert "[DWARF] Location-less inlined variables should not have DW_TAG_variable" 2021-02-03 17:54:33 +00:00
DebugHandlerBase.cpp make the AsmPrinterHandler array public 2020-11-03 10:02:09 -05:00
DebugLocEntry.h [NFCI] Removed an un-used declaration got accidentally introduced in f91d18eaa9 2020-09-01 15:59:04 +05:30
DebugLocStream.cpp
DebugLocStream.h
DwarfCFIException.cpp Exception support for basic block sections 2020-09-30 11:05:55 -07:00
DwarfCompileUnit.cpp Fix memory leak in 4318028cd2 2021-01-28 12:08:23 -08:00
DwarfCompileUnit.h [DebugInfo] Fix emitting DWARF64 compilation units (5/19). 2020-09-15 11:30:30 +07:00
DwarfDebug.cpp Revert "[DWARF] Location-less inlined variables should not have DW_TAG_variable" 2021-02-03 17:54:33 +00:00
DwarfDebug.h Re-land D94976 after revert in e29552c5af 2021-02-04 11:17:18 +00:00
DwarfException.h [XCOFF][AIX] Generate LSDA data and compact unwind section on AIX 2020-12-02 18:42:44 +00:00
DwarfExpression.cpp Revert "[DebugInfo] Refactor code for emitting DWARF expressions for FP constants" 2020-11-24 09:11:33 +01:00
DwarfExpression.h Revert "[DebugInfo] Refactor code for emitting DWARF expressions for FP constants" 2020-11-24 09:11:33 +01:00
DwarfFile.cpp DwarfFile.h - remove unnecessary includes. NFCI. 2020-09-17 12:12:18 +01:00
DwarfFile.h DwarfFile.h - remove unnecessary includes. NFCI. 2020-09-17 12:12:18 +01:00
DwarfStringPool.cpp DwarfStringPool.cpp - remove unnecessary StringRef include. NFCI. 2020-09-17 12:18:27 +01:00
DwarfStringPool.h [DebugInfo] Make the offset of string pool entries 64-bit (18/19). 2020-09-15 12:23:32 +07:00
DwarfUnit.cpp DebugInfo: Temporarily work around -gsplit-dwarf + LTO .debug_gnu_pubnames regression after D94976 2021-02-04 17:35:09 -08:00
DwarfUnit.h DebugInfo: Deduplicate addresses in debug_addr 2021-01-27 14:00:43 -08:00
EHStreamer.cpp [XCOFF][AIX] Alternative path in EHStreamer for platforms do not have uleb128 support 2020-12-02 20:03:15 +00:00
EHStreamer.h Exception support for basic block sections 2020-09-30 11:05:55 -07:00
ErlangGCPrinter.cpp [AsmPrinter] De-capitalize all AsmPrinter::Emit* but EmitInstruction 2020-02-13 17:06:24 -08:00
OcamlGCPrinter.cpp Replace `T(x)` with `reinterpret_cast<T>(x)` everywhere it means reinterpret_cast. NFC. 2020-12-22 19:54:29 -05:00
PseudoProbePrinter.cpp [CSSPGO] Pseudo probe encoding and emission. 2020-12-10 17:29:28 -08:00
PseudoProbePrinter.h [CSSPGO] Pseudo probe encoding and emission. 2020-12-10 17:29:28 -08:00
WasmException.cpp [WebAssembly] Remove exnref and br_on_exn 2021-01-09 02:02:54 -08:00
WasmException.h Exception support for basic block sections 2020-09-30 11:05:55 -07:00
WinCFGuard.cpp [CodeGen] Use llvm::append_range (NFC) 2020-12-28 19:55:16 -08:00
WinCFGuard.h [CFGuard] Add address-taken IAT tables and delay-load support 2020-11-17 18:24:45 -08:00
WinException.cpp Reapply "[CodeGen] [WinException] Only produce handler data at the end of the function if needed" 2020-11-23 23:17:03 +02:00
WinException.h [AsmPrinter] Remove unused forward declarations. NFC. 2020-04-22 14:01:52 +01:00