diff --git a/src/librustc/middle/trans/build.rs b/src/librustc/middle/trans/build.rs index 11458eda585..f31e0f8b602 100644 --- a/src/librustc/middle/trans/build.rs +++ b/src/librustc/middle/trans/build.rs @@ -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); } diff --git a/src/librustc/middle/trans/builder.rs b/src/librustc/middle/trans/builder.rs index 349f14aefbc..ee2363dbec9 100644 --- a/src/librustc/middle/trans/builder.rs +++ b/src/librustc/middle/trans/builder.rs @@ -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");