[Debug] Look through bitcasts to find argument registers
authorOliver Stannard <oliver.stannard@arm.com>
Mon, 12 Oct 2015 15:52:36 +0000 (15:52 +0000)
committerOliver Stannard <oliver.stannard@arm.com>
Mon, 12 Oct 2015 15:52:36 +0000 (15:52 +0000)
commit0b63e20666f5ab176b4da2f068d3438d81c2d25d
tree9e963fb489a81aadbc602462377f58ce321801a9
parent0d7390c3fd97d30210766847cd4e66aaf322b632
[Debug] Look through bitcasts to find argument registers

On targets where f32 is not legal, we have to look through a BITCAST SDNode to
find the register that an argument is stored in when emitting debug info, or we
will not be able to emit a DW_AT_location for it.

Differential Revision: http://reviews.llvm.org/D13005

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250056 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
test/DebugInfo/ARM/float-args.ll [new file with mode: 0644]