diff options
author | Adrian Prantl <aprantl@apple.com> | 2017-10-26 20:08:52 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2017-10-26 20:08:52 +0000 |
commit | 356347b58d18b5b7984fbc5487532f49c7e98237 (patch) | |
tree | b563889edd0d291d255052af0d797611889742a8 /llvm/lib/Object/COFFModuleDefinition.cpp | |
parent | 86cf0856ae78c1d4e31a19b7fa0ab957379bee03 (diff) | |
download | llvm-356347b58d18b5b7984fbc5487532f49c7e98237.zip llvm-356347b58d18b5b7984fbc5487532f49c7e98237.tar.gz llvm-356347b58d18b5b7984fbc5487532f49c7e98237.tar.bz2 |
Simplify codegen and debug info generation for block context parameters.
The exisiting code goes out of its way to put block parameters into an
alloca only at -O0, and then describes the funciton argument with a
dbg.declare, which is undocumented in the LLVM-CFE contract and does
not actually behave as intended after LLVM r642022.
This patch just generates the alloca unconditionally, the mem2reg pass
will eliminate it at -O1 and up anyway and points the dbg.declare to
the alloca as intended (which mem2reg will then correctly rewrite into
a dbg.value).
This reapplies r316684 with some dead code removed.
rdar://problem/35043980
Differential Revision: https://reviews.llvm.org/D39305
llvm-svn: 316689
Diffstat (limited to 'llvm/lib/Object/COFFModuleDefinition.cpp')
0 files changed, 0 insertions, 0 deletions