[all-commits] [llvm/llvm-project] fc60bf: [DebugInfo] Always emit `.debug_names` with DWARF ...
Jonas Devlieghere via All-commits
all-commits at lists.llvm.org
Wed Jun 14 15:28:48 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fc60bf2de11149d2c027d63e7ad5a98afa6fab80
https://github.com/llvm/llvm-project/commit/fc60bf2de11149d2c027d63e7ad5a98afa6fab80
Author: Jonas Devlieghere <jonas at devlieghere.com>
Date: 2023-06-14 (Wed, 14 Jun 2023)
Changed paths:
M clang/lib/CodeGen/CGDebugInfo.cpp
M clang/test/CodeGen/debug-info-names.c
M llvm/include/llvm/IR/DebugInfoMetadata.h
M llvm/lib/AsmParser/LLLexer.cpp
M llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp
M llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
M llvm/lib/IR/DebugInfoMetadata.cpp
A llvm/test/DebugInfo/Inputs/name-table-kind-apple-4.ll
A llvm/test/DebugInfo/Inputs/name-table-kind-apple-5.ll
A llvm/test/DebugInfo/accel-tables-apple.ll
Log Message:
-----------
[DebugInfo] Always emit `.debug_names` with DWARF 5 for Apple platforms
On Apple platforms, we generate .apple_names, .apple_types,
.apple_namespaces and .apple_objc Apple accelerator tables for DWARF 4
and earlier. For DWARF 5 we should generate .debug_names, but instead we
get no accelerator tables at all.
In the backend we are correctly determining that we should be emitting
.debug_names instead of .apple_names. However, when we get to the point
of emitting the section, if the CU debug name table kind is not
"default", the accelerator table emission is skipped.
This patch sets the DebugNameTableKind to Apple in the frontend when
target an Apple target. That way we know that the CU was compiled with
the intent of emitting accelerator tables. For DWARF 4 and earlier, that
means Apple accelerator tables. For DWARF 5 and later, that means .debug
names.
Differential revision: https://reviews.llvm.org/D118754
More information about the All-commits
mailing list