aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorDavid Stenberg <david.stenberg@ericsson.com>2018-09-07 13:54:07 +0000
committerDavid Stenberg <david.stenberg@ericsson.com>2018-09-07 13:54:07 +0000
commit45acc9610bc61fe3f76ff192cf70e1757440f383 (patch)
treed32a7cdb33f2038592f3cd6961ce122edeb8d576 /clang/lib/Frontend/CompilerInvocation.cpp
parent9ad0f02749f1a6566693a8d5dc33775b31cddbd5 (diff)
downloadllvm-45acc9610bc61fe3f76ff192cf70e1757440f383.zip
llvm-45acc9610bc61fe3f76ff192cf70e1757440f383.tar.gz
llvm-45acc9610bc61fe3f76ff192cf70e1757440f383.tar.bz2
[DebugInfo] Handle stack slot offsets for spilled sub-registers in LDV
Summary: Extend LDV so that stack slot offsets for spilled sub-registers are added to the emitted debug locations. This is accomplished by querying InstrInfo::getStackSlotRange(). With this change, LDV will add a DW_OP_plus_uconst operation to the expression if a sub-register is spilled. Later on, PEI will add an offset operation for the stack slot, meaning that we will get expressions of the forms: * {DW_OP_constu #fp-offset, DW_OP_minus, DW_OP_plus_uconst #subreg-offset} * {DW_OP_plus_const #fp-offset, DW_OP_minus, DW_OP_plus_uconst #subreg-offset} The two offset operations should ideally be merged. Reviewers: rnk, aprantl, stoklund Reviewed By: aprantl Subscribers: dblaikie, bjope, nemanjai, JDevlieghere, llvm-commits Tags: #debug-info Differential Revision: https://reviews.llvm.org/D51612 llvm-svn: 341659
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions