[PATCH] D15001: Extend debug info for function parameters in SDAG.

Evgeniy Stepanov via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 25 15:58:13 PST 2015


eugenis created this revision.
eugenis added a reviewer: pcc.
eugenis added a subscriber: llvm-commits.
eugenis set the repository for this revision to rL LLVM.

SDAG currently can emit debug location for function parameters when
an llvm.dbg.declare points to either a function argument SSA temp,
or to an AllocaInst. This change extends this logic by adding a
fallback case when neither of the above is true.

This is required for SafeStack, which may copy the contents of a
byval function argument into something that is not an alloca, and
then describe the target as the new location of the said argument.


Repository:
  rL LLVM

http://reviews.llvm.org/D15001

Files:
  lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  test/DebugInfo/Generic/safestack-byval.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15001.41194.patch
Type: text/x-patch
Size: 6944 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151125/1f43fa50/attachment.bin>


More information about the llvm-commits mailing list