]> git.lizzy.rs Git - rust.git/commit
Gate LLVMRustHasFeature on LLVM_RUSTLLVM
authorJosh Stone <jistone@redhat.com>
Tue, 1 Aug 2017 01:10:01 +0000 (18:10 -0700)
committerJosh Stone <jistone@redhat.com>
Tue, 1 Aug 2017 01:10:01 +0000 (18:10 -0700)
commit881a7246606cb6ced8ba63a8d58b7e54fed90b7c
treea5ace6976732de292db08c36cd3c546e2919eb3a
parent37c7d0ebb3ec5b62bd37df9ee8826194e3c6300a
Gate LLVMRustHasFeature on LLVM_RUSTLLVM

Commit c4710203c098b in #43492 make `LLVMRustHasFeature` "more robust"
by using `getFeatureTable()`.  However, this function is specific to
Rust's own LLVM fork, not upstream LLVM-4.0, so we need to use
`#if LLVM_RUSTLLVM` to guard this call.
src/rustllvm/PassWrapper.cpp