[all-commits] [llvm/llvm-project] ce17c6: [BOLT][DWARF] Fix --dwarf-output-path (#71886)
Alexander Yermolovich via All-commits
all-commits at lists.llvm.org
Fri Nov 10 13:19:11 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ce17c6d3bac5e27212a17b4534d09d97ab40c386
https://github.com/llvm/llvm-project/commit/ce17c6d3bac5e27212a17b4534d09d97ab40c386
Author: Alexander Yermolovich <43973793+ayermolo at users.noreply.github.com>
Date: 2023-11-10 (Fri, 10 Nov 2023)
Changed paths:
M bolt/lib/Rewrite/DWARFRewriter.cpp
A bolt/test/X86/Inputs/dwarf5-df-output-dir-same-name-helper.s
A bolt/test/X86/Inputs/dwarf5-df-output-dir-same-name-main.s
A bolt/test/X86/dwarf5-df-output-dir-same-name.test
Log Message:
-----------
[BOLT][DWARF] Fix --dwarf-output-path (#71886)
Fixed a bug where when --dwarf-output-path is specified
and DW_AT_dwo_name contains part of the path the output path would
contain both.
Which lead to llvm-bolt crash, because the path didn't exist.
Example:
llvm-bolt .... --dwarf-output-path=/some/path/
DW_AT_dwo_name ("objects/o1/split.dwo")
It would try to write .dwo file to /some/path/objects/o1/split.dwo.dwo
instead of to
/some/path/split.dwo.dwo
More information about the All-commits
mailing list