[PATCH] D98301: [RFC] Support DWARF expressions in CFI instructions
Rafael Auler via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 9 15:43:33 PST 2021
rafauler created this revision.
rafauler added reviewers: dblaikie, MaskRay, efriedma, pcc, sdesmalen.
Herald added a subscriber: hiraditya.
rafauler requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This adds minimal support in MCStreamer to encode DWARF expressions when
emitting CFI. This is used by BOLT when reading binaries that contain
such constructs and we need to be able to write them back to the final
binary so we preserve correct unwinding info.
I wanted to post this as an RFC because I noticed that other MCStreamer
users are emitting DWARF expressions using cfi_escape. Is there interest
to support emission in MCStreamer, or should we move this logic to BOLT
and use cfi_escape too? Thanks!
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D98301
Files:
llvm/include/llvm/MC/MCDwarf.h
llvm/include/llvm/MC/MCStreamer.h
llvm/lib/CodeGen/CFIInstrInserter.cpp
llvm/lib/MC/MCDwarf.cpp
llvm/lib/MC/MCStreamer.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98301.329489.patch
Type: text/x-patch
Size: 17252 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210309/7c723cdf/attachment.bin>
More information about the llvm-commits
mailing list