remove unused `FastCall` wrapper

this can just be done using CallWithConv
This commit is contained in:
Daniel Micay 2013-09-12 23:41:01 -04:00
parent 72f62abebf
commit 137eb346f6
2 changed files with 0 additions and 15 deletions

View File

@ -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); }

View File

@ -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");