]> git.lizzy.rs Git - rust.git/commit
Auto merge of #39747 - mattico:fix-llvm4-createcompileunit, r=alexcrichton
authorbors <bors@rust-lang.org>
Sat, 11 Feb 2017 22:10:53 +0000 (22:10 +0000)
committerbors <bors@rust-lang.org>
Sat, 11 Feb 2017 22:10:53 +0000 (22:10 +0000)
commitba7cf7cc5daefb9f28371b8be87dc262fb55937c
treef926f6bb79e28a612a579ae62a234139536a5f08
parentbae454edc5e18e81b831baf4a7647bf2dda620a8
parentaebce5bd2aa9f75b09fc30638736e14761989fce
Auto merge of #39747 - mattico:fix-llvm4-createcompileunit, r=alexcrichton

[LLVM 4.0] Fix CreateCompileUnit

This is largely identical to @dylanmckay's [patch](https://github.com/dylanmckay), except that it doesn't try to use `file_metadata()`. I don't think that is necessary because we don't want the compile unit to be added to  `debug_context.created_files`, though I'd like confirmation from someone who knows for sure. If that is needed, I can modify `file_metadata_()` so that it can be used from `compile_unit_metadata()`.