rustc: Remove unused "trace" upcalls
This commit is contained in:
parent
d1494901d0
commit
ba7c8f18d4
4 changed files with 0 additions and 31 deletions
|
|
@ -26,8 +26,6 @@ import lib::llvm::llvm::TypeRef;
|
|||
|
||||
type upcalls =
|
||||
{grow_task: ValueRef,
|
||||
trace_word: ValueRef,
|
||||
trace_str: ValueRef,
|
||||
new_port: ValueRef,
|
||||
del_port: ValueRef,
|
||||
new_chan: ValueRef,
|
||||
|
|
@ -85,8 +83,6 @@ fn declare_upcalls(tn: type_names, tydesc_type: TypeRef,
|
|||
|
||||
let empty_vec: [TypeRef] = ~[];
|
||||
ret @{grow_task: dv("grow_task", ~[T_size_t()]),
|
||||
trace_word: dv("trace_word", ~[T_int()]),
|
||||
trace_str: dv("trace_str", ~[T_ptr(T_i8())]),
|
||||
new_port: d("new_port", ~[T_size_t()], T_opaque_port_ptr()),
|
||||
del_port: dv("del_port", ~[T_opaque_port_ptr()]),
|
||||
new_chan:
|
||||
|
|
|
|||
|
|
@ -6761,19 +6761,6 @@ fn declare_intrinsics(llmod: ModuleRef) -> hashmap[str, ValueRef] {
|
|||
ret intrinsics;
|
||||
}
|
||||
|
||||
fn trace_str(cx: &@block_ctxt, s: str) {
|
||||
cx.build.Call(bcx_ccx(cx).upcalls.trace_str,
|
||||
~[cx.fcx.lltaskptr, C_cstr(bcx_ccx(cx), s)]);
|
||||
}
|
||||
|
||||
fn trace_word(cx: &@block_ctxt, v: ValueRef) {
|
||||
cx.build.Call(bcx_ccx(cx).upcalls.trace_word, ~[cx.fcx.lltaskptr, v]);
|
||||
}
|
||||
|
||||
fn trace_ptr(cx: &@block_ctxt, v: ValueRef) {
|
||||
trace_word(cx, cx.build.PtrToInt(v, T_int()));
|
||||
}
|
||||
|
||||
fn trap(bcx: &@block_ctxt) {
|
||||
let v: [ValueRef] = ~[];
|
||||
alt bcx_ccx(bcx).intrinsics.find("llvm.trap") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue