[all-commits] [llvm/llvm-project] 8c8d1d: [BOLT] Fix DWARF4/5 file index handling in debug i...
Grigory Pastukhov via All-commits
all-commits at lists.llvm.org
Fri Aug 29 16:55:18 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8c8d1d45a6dcafb7d9255fe629d829ab5426ed7a
https://github.com/llvm/llvm-project/commit/8c8d1d45a6dcafb7d9255fe629d829ab5426ed7a
Author: Grigory Pastukhov <99913765+grigorypas at users.noreply.github.com>
Date: 2025-08-29 (Fri, 29 Aug 2025)
Changed paths:
M bolt/lib/Core/BinaryContext.cpp
A bolt/test/X86/dwarf5-debug-line-print.s
A bolt/test/X86/dwarf5-two-cus.s
Log Message:
-----------
[BOLT] Fix DWARF4/5 file index handling in debug info functions (#151401)
Fix incorrect file index handling that differed between DWARF4 and
DWARF5.
DWARF4 file indices start at 1, while DWARF5 starts at 0. The code was
manually adjusting indices with `Row.File - 1`, which works for DWARF4
but breaks DWARF5.
Replace manual indexing with `getFileNameEntry()` which abstracts away
the DWARF version differences.
Fixed in:
- printDebugInfo()
- addDebugFilenameToUnit()
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list