keep noinline for system llvm < 14
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user