rustc_trans: don't hardcode llvm version for conditional intrinsics
This commit introduce a third parameter for compatible_ifn!, as new intrinsics are being added in recent LLVM releases and there is no need to hardcode a specific case. Signed-off-by: Luca Bruno <lucab@debian.org>
This commit is contained in:
parent
1be9e6f055
commit
ce32f6412e
3 changed files with 27 additions and 10 deletions
|
|
@ -1772,6 +1772,8 @@ extern {
|
|||
-> ValueRef;
|
||||
|
||||
pub fn LLVMRustDebugMetadataVersion() -> u32;
|
||||
pub fn LLVMVersionMajor() -> u32;
|
||||
pub fn LLVMVersionMinor() -> u32;
|
||||
|
||||
pub fn LLVMRustAddModuleFlag(M: ModuleRef,
|
||||
name: *const c_char,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue