remove unused FastCall
wrapper
this can just be done using CallWithConv
This commit is contained in:
parent
72f62abebf
commit
137eb346f6
@ -649,11 +649,6 @@ pub fn Call(cx: @mut Block, Fn: ValueRef, Args: &[ValueRef]) -> ValueRef {
|
||||
B(cx).call(Fn, Args)
|
||||
}
|
||||
|
||||
pub fn FastCall(cx: @mut Block, Fn: ValueRef, Args: &[ValueRef]) -> ValueRef {
|
||||
if cx.unreachable { return _UndefReturn(cx, Fn); }
|
||||
B(cx).call(Fn, Args)
|
||||
}
|
||||
|
||||
pub fn CallWithConv(cx: @mut Block, Fn: ValueRef, Args: &[ValueRef],
|
||||
Conv: CallConv, sret: bool) -> ValueRef {
|
||||
if cx.unreachable { return _UndefReturn(cx, Fn); }
|
||||
|
@ -786,16 +786,6 @@ impl Builder {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn fastcall(&self, llfn: ValueRef, args: &[ValueRef]) -> ValueRef {
|
||||
self.count_insn("fastcall");
|
||||
unsafe {
|
||||
let v = llvm::LLVMBuildCall(self.llbuilder, llfn, vec::raw::to_ptr(args),
|
||||
args.len() as c_uint, noname());
|
||||
lib::llvm::SetInstructionCallConv(v, lib::llvm::FastCallConv);
|
||||
v
|
||||
}
|
||||
}
|
||||
|
||||
pub fn call_with_conv(&self, llfn: ValueRef, args: &[ValueRef],
|
||||
conv: CallConv, sret: bool) -> ValueRef {
|
||||
self.count_insn("callwithconv");
|
||||
|
Loading…
x
Reference in New Issue
Block a user