[PATCH] D91058: [DebugInfo] Refactor code for emitting DWARF expressions for FP constants

Pavel Labath via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 9 02:25:51 PST 2020


labath created this revision.
labath added reviewers: dblaikie, probinson, aprantl, SouraVX.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
labath requested review of this revision.

This patch moves the selection of the style used to emit the numbers
(DW_OP_implicit_value vs. DW_OP_const+DW_OP_stack_value) into
DwarfExpression::addUnsignedConstant. This logic is not FP-specific, and
it will be needed for large integers too.

Split off from D90916 <https://reviews.llvm.org/D90916>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D91058

Files:
  llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
  llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp
  llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91058.303791.patch
Type: text/x-patch
Size: 4787 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201109/86b6a486/attachment.bin>


More information about the llvm-commits mailing list