about summary refs log tree commit diff
path: root/src/comp
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2010-10-22 14:46:03 -0700
committerGraydon Hoare <graydon@mozilla.com>2010-10-22 14:46:03 -0700
commit6ec402d4a66d2c0306e525e1e124cc38ecbeb421 (patch)
tree00c7639dc9e64a322ce3968871ee85ba0aa534fa /src/comp
parent76dc0ae995d45942b8134eb9b64af566ddc29bfb (diff)
downloadrust-6ec402d4a66d2c0306e525e1e124cc38ecbeb421.tar.gz
rust-6ec402d4a66d2c0306e525e1e124cc38ecbeb421.zip
Add makefile bits to run rustc on the testsuite as part of 'make check'. Mostly xfailed.
Diffstat (limited to 'src/comp')
-rw-r--r--src/comp/middle/trans.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs
index 83e744ea4d2..a157d42df0b 100644
--- a/src/comp/middle/trans.rs
+++ b/src/comp/middle/trans.rs
@@ -324,7 +324,6 @@ fn C_struct(vec[ValueRef] elts) -> ValueRef {
 fn decl_cdecl_fn(ModuleRef llmod, str name,
                  vec[TypeRef] inputs, TypeRef output) -> ValueRef {
     let TypeRef llty = T_fn(inputs, output);
-    log "declaring " + name + " with type " + ty_str(llty);
     let ValueRef llfn =
         llvm.LLVMAddFunction(llmod, _str.buf(name), llty);
     llvm.LLVMSetFunctionCallConv(llfn, lib.llvm.LLVMCCallConv);
@@ -372,13 +371,6 @@ fn trans_upcall(@block_ctxt cx, str name, vec[ValueRef] args) -> result {
     for (ValueRef a in args) {
         call_args += cx.build.ZExtOrBitCast(a, T_int());
     }
-    /*
-     log "emitting indirect-upcall via " + abi.upcall_glue_name(n);
-     for (ValueRef v in call_args) {
-       log "arg: " + val_str(v);
-     }
-     log "emitting call to llglue of type: " + val_str(llglue);
-    */
 
     ret res(cx, cx.build.Call(llglue, call_args));
 }
@@ -815,7 +807,6 @@ fn trans_stmt(@block_ctxt cx, &ast.stmt s) -> result {
                 case (ast.decl_local(?local)) {
                     alt (local.init) {
                         case (some[@ast.expr](?e)) {
-                            log "storing init of local " + local.ident;
                             auto llptr = cx.fcx.lllocals.get(local.id);
                             sub = trans_expr(cx, *e);
                             sub.val = sub.bcx.build.Store(sub.val, llptr);
@@ -912,7 +903,6 @@ fn trans_block(@block_ctxt cx, &ast.block b) -> result {
     auto bcx = cx;
 
     for each (@ast.local local in block_locals(b)) {
-        log "declaring local " + local.ident;
         auto ty = T_nil();
         alt (local.ty) {
             case (some[@ast.ty](?t)) {
@@ -923,7 +913,6 @@ fn trans_block(@block_ctxt cx, &ast.block b) -> result {
             }
         }
         auto val = bcx.build.Alloca(ty);
-        log "built alloca: " + val_str(val);
         cx.fcx.lllocals.insert(local.id, val);
     }