Bump minimum required LLVM version to 6.0
This commit is contained in:
parent
b7da2c6e12
commit
706e67b0a0
19 changed files with 14 additions and 65 deletions
|
|
@ -1024,17 +1024,11 @@ impl BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
|
|||
|
||||
fn minnum(&mut self, lhs: &'ll Value, rhs: &'ll Value) -> &'ll Value {
|
||||
self.count_insn("minnum");
|
||||
unsafe {
|
||||
let instr = llvm::LLVMRustBuildMinNum(self.llbuilder, lhs, rhs);
|
||||
instr.expect("LLVMRustBuildMinNum is not available in LLVM version < 6.0")
|
||||
}
|
||||
unsafe { llvm::LLVMRustBuildMinNum(self.llbuilder, lhs, rhs) }
|
||||
}
|
||||
fn maxnum(&mut self, lhs: &'ll Value, rhs: &'ll Value) -> &'ll Value {
|
||||
self.count_insn("maxnum");
|
||||
unsafe {
|
||||
let instr = llvm::LLVMRustBuildMaxNum(self.llbuilder, lhs, rhs);
|
||||
instr.expect("LLVMRustBuildMaxNum is not available in LLVM version < 6.0")
|
||||
}
|
||||
unsafe { llvm::LLVMRustBuildMaxNum(self.llbuilder, lhs, rhs) }
|
||||
}
|
||||
|
||||
fn select(
|
||||
|
|
|
|||
|
|
@ -1222,12 +1222,12 @@ extern "C" {
|
|||
B: &Builder<'a>,
|
||||
LHS: &'a Value,
|
||||
LHS: &'a Value,
|
||||
) -> Option<&'a Value>;
|
||||
) -> &'a Value;
|
||||
pub fn LLVMRustBuildMaxNum(
|
||||
B: &Builder<'a>,
|
||||
LHS: &'a Value,
|
||||
LHS: &'a Value,
|
||||
) -> Option<&'a Value>;
|
||||
) -> &'a Value;
|
||||
|
||||
// Atomic Operations
|
||||
pub fn LLVMRustBuildAtomicLoad(B: &Builder<'a>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue