keep noinline for system llvm < 14
This commit is contained in:
parent
2b662217e7
commit
e4463b2453
9 changed files with 29 additions and 6 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue