[Utils] Insert DW_OP_bit_piece when only describing part of the variable
authorKeno Fischer <kfischer@college.harvard.edu>
Tue, 12 Jan 2016 22:46:09 +0000 (22:46 +0000)
committerKeno Fischer <kfischer@college.harvard.edu>
Tue, 12 Jan 2016 22:46:09 +0000 (22:46 +0000)
commit58b254770aa7fa5da55181d6cc31646388d9493c
tree1ec782494fd47d66a9f3ad2fc50c523e7652c2ba
parent21314fb7684a3055e440155016b95b91c7cae9bb
[Utils] Insert DW_OP_bit_piece when only describing part of the variable

Summary: The dbg.declare -> dbg.value conversion looks through any zext/sext
to find a value to describe the variable (in the expectation that those
zext/sext instruction will go away later). However, those values do not
cover the entire variable and thus need a DW_OP_bit_piece.

Reviewers: aprantl
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D16061

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257534 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/Local.cpp
test/Transforms/Util/split-bit-piece.ll [new file with mode: 0644]