]> git.lizzy.rs Git - rust.git/commit
Support a debug info API change for LLVM 4.0
authorDylan McKay <dylanmckay34@gmail.com>
Sat, 4 Feb 2017 10:22:05 +0000 (23:22 +1300)
committerDylan McKay <dylanmckay34@gmail.com>
Sat, 4 Feb 2017 10:22:05 +0000 (23:22 +1300)
commit768c6c081e4a8cac6b6f8eee5cde72ed13a7e87a
tree971746f9da04b4be1593c9d9733e7f1b74b53570
parent0648517faf1e2cf37c8b6770cbd0180a816ed9a0
Support a debug info API change for LLVM 4.0

Instead of directly creating a 'DIGlobalVariable', we now have to create
a 'DIGlobalVariableExpression' which itself contains a reference to a
'DIGlobalVariable'.

This is a straightforward change.

In the future, we should rename 'DIGlobalVariable' in the FFI
bindings, assuming we will only refer to 'DIGlobalVariableExpression'
and not 'DIGlobalVariable'.
src/librustc_llvm/ffi.rs
src/rustllvm/RustWrapper.cpp