]> git.lizzy.rs Git - rust.git/commit
Update DW_OP_plus to DW_OP_plus_uconst
authorJosh Stone <jistone@redhat.com>
Sat, 20 Jan 2018 05:43:53 +0000 (21:43 -0800)
committerJosh Stone <jistone@redhat.com>
Sat, 20 Jan 2018 05:43:53 +0000 (21:43 -0800)
commite2f6b280ea13e48bff86254549988e61eee37139
tree2e2ba3e290724c80b4b30444b4a15c0670df402a
parent5965b790142eff7a8546e947914e7a8e00c61575
Update DW_OP_plus to DW_OP_plus_uconst

LLVM <= 4.0 used a non-standard interpretation of `DW_OP_plus`.  In the
DWARF standard, this adds two items on the expressions stack.  LLVM's
behavior was more like DWARF's `DW_OP_plus_uconst` -- adding a constant
that follows the op.  The patch series starting with [D33892] switched
to the standard DWARF interpretation, so we need to follow.

[D33892]: https://reviews.llvm.org/D33892
src/librustc_llvm/ffi.rs
src/librustc_trans/mir/mod.rs
src/rustllvm/RustWrapper.cpp