1
Fork 0

keep noinline for system llvm < 14

This commit is contained in:
Erik Desjardins 2021-12-29 23:19:55 -05:00
parent 2b662217e7
commit e4463b2453
9 changed files with 29 additions and 6 deletions

View file

@ -217,6 +217,12 @@ pub fn get_version() -> (u32, u32, u32) {
}
}
/// Returns `true` if this LLVM is Rust's bundled LLVM (and not system LLVM).
pub fn is_rust_llvm() -> bool {
// Can be called without initializing LLVM
unsafe { llvm::LLVMRustIsRustLLVM() }
}
pub fn print_passes() {
// Can be called without initializing LLVM
unsafe {