librustc: Remove debug code; xfail-pretty reverse-complement.

This commit is contained in:
Patrick Walton 2013-04-19 11:50:03 -07:00
parent af4ea11d09
commit f93b3cd5c3
3 changed files with 9 additions and 4 deletions

View file

@ -13,7 +13,6 @@ use middle::trans::base::*;
use middle::trans::build::*;
use middle::trans::common::*;
use core::io::println;
use core::libc::c_uint;
use core::option;
use core::vec;

View file

@ -185,17 +185,19 @@ fn build_wrap_fn_(ccx: @CrateContext,
llshimfn: ValueRef,
llwrapfn: ValueRef,
shim_upcall: ValueRef,
needs_c_return: bool,
arg_builder: wrap_arg_builder,
ret_builder: wrap_ret_builder) {
let _icx = ccx.insn_ctxt("foreign::build_wrap_fn_");
let fcx = new_fn_ctxt(ccx, ~[], llwrapfn, tys.fn_sig.output, None);
// Patch up the return type if it's not immediate.
/*if !ty::type_is_immediate(tys.fn_sig.output) {
// Patch up the return type if it's not immediate and we're returning via
// the C ABI.
if needs_c_return && !ty::type_is_immediate(tys.fn_sig.output) {
let lloutputtype = type_of::type_of(*fcx.ccx, tys.fn_sig.output);
fcx.llretptr = Some(alloca(raw_block(fcx, false, fcx.llstaticallocas),
lloutputtype));
}*/
}
let bcx = top_scope_block(fcx, None);
let lltop = bcx.llbb;
@ -499,6 +501,7 @@ pub fn trans_foreign_mod(ccx: @CrateContext,
llshimfn,
llwrapfn,
ccx.upcalls.call_shim_on_c_stack,
false,
build_args,
build_ret);
@ -1229,6 +1232,7 @@ pub fn trans_foreign_fn(ccx: @CrateContext,
llshimfn,
llwrapfn,
ccx.upcalls.call_shim_on_rust_stack,
true,
build_args,
build_ret);

View file

@ -1,3 +1,5 @@
// xfail-pretty
use core::cast::transmute;
use core::libc::{STDOUT_FILENO, c_int, fdopen, fgets, fopen, fputc, fwrite};
use core::libc::{size_t};