[llvm] [BOLT][DWARF] Add support for DW_IDX_parent (PR #85285)
Maksim Panchenko via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 14 14:05:01 PDT 2024
================
@@ -456,6 +483,17 @@ void DWARF5AcceleratorTable::writeEntry(const BOLTDWARF5AccelTableData &Entry) {
llvm::endianness::little);
break;
}
+ case dwarf::DW_IDX_parent: {
+ assert(
+ (AttrEnc.Form == dwarf::DW_FORM_ref4 && Entry.getParentDieOffset()) ||
+ AttrEnc.Form == dwarf::DW_FORM_flag_present);
+ if (std::optional<uint64_t> ParentOffset = Entry.getParentDieOffset()) {
+ Entry.setPatchOffset(EntriesBuffer->size());
+ support::endian::write(*Entriestream, static_cast<uint32_t>(0xBADF00D),
----------------
maksfb wrote:
Sure if that's what DWARF spec recommends.
https://github.com/llvm/llvm-project/pull/85285
More information about the llvm-commits
mailing list