[all-commits] [llvm/llvm-project] ccbf28: [BOLT][DWARF] Handle zero size DW_TAG_inlined_subr...
Alexander Yermolovich via All-commits
all-commits at lists.llvm.org
Wed Aug 17 17:30:38 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ccbf28b09d605d91b6bd10e3d033168c6048beb4
https://github.com/llvm/llvm-project/commit/ccbf28b09d605d91b6bd10e3d033168c6048beb4
Author: Alexander Yermolovich <ayermolo at fb.com>
Date: 2022-08-17 (Wed, 17 Aug 2022)
Changed paths:
M bolt/include/bolt/Rewrite/DWARFRewriter.h
M bolt/lib/Rewrite/DWARFRewriter.cpp
A bolt/test/X86/dwarf4-size-0-inlined_subroutine.s
Log Message:
-----------
[BOLT][DWARF] Handle zero size DW_TAG_inlined_subroutine
We were resetting DW_AT_low_pc to zero when DW_AT_high_pc was zero, or
DW_AT_low_pc == DW_AT_high_pc. This resulted in LLDB to print error "adding
range [0x0-0x0) which has a base that is less than the function's low PC".
Changed it so that when this case arises we set DW_AT_low_pc to the start
address.
Reviewed By: rafauler
Differential Revision: https://reviews.llvm.org/D132059
More information about the All-commits
mailing list