Skip to content

Commit 137eb34

Browse files
committed
remove unused FastCall wrapper
this can just be done using CallWithConv
1 parent 72f62ab commit 137eb34

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

src/librustc/middle/trans/build.rs

-5
Original file line numberDiff line numberDiff line change
@@ -649,11 +649,6 @@ pub fn Call(cx: @mut Block, Fn: ValueRef, Args: &[ValueRef]) -> ValueRef {
649649
B(cx).call(Fn, Args)
650650
}
651651

652-
pub fn FastCall(cx: @mut Block, Fn: ValueRef, Args: &[ValueRef]) -> ValueRef {
653-
if cx.unreachable { return _UndefReturn(cx, Fn); }
654-
B(cx).call(Fn, Args)
655-
}
656-
657652
pub fn CallWithConv(cx: @mut Block, Fn: ValueRef, Args: &[ValueRef],
658653
Conv: CallConv, sret: bool) -> ValueRef {
659654
if cx.unreachable { return _UndefReturn(cx, Fn); }

src/librustc/middle/trans/builder.rs

-10
Original file line numberDiff line numberDiff line change
@@ -786,16 +786,6 @@ impl Builder {
786786
}
787787
}
788788

789-
pub fn fastcall(&self, llfn: ValueRef, args: &[ValueRef]) -> ValueRef {
790-
self.count_insn("fastcall");
791-
unsafe {
792-
let v = llvm::LLVMBuildCall(self.llbuilder, llfn, vec::raw::to_ptr(args),
793-
args.len() as c_uint, noname());
794-
lib::llvm::SetInstructionCallConv(v, lib::llvm::FastCallConv);
795-
v
796-
}
797-
}
798-
799789
pub fn call_with_conv(&self, llfn: ValueRef, args: &[ValueRef],
800790
conv: CallConv, sret: bool) -> ValueRef {
801791
self.count_insn("callwithconv");

0 commit comments

Comments
 (0)