From 41f6a3d5e1d18a1aa4e4537923768dc072807413 Mon Sep 17 00:00:00 2001 From: Lindsey Kuper Date: Wed, 6 Jul 2011 17:02:56 -0700 Subject: [PATCH] Comments and cleanup. --- src/comp/middle/trans.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs index ecea057a5da..8b28f156c84 100644 --- a/src/comp/middle/trans.rs +++ b/src/comp/middle/trans.rs @@ -1778,6 +1778,8 @@ fn set_no_inline(ValueRef f) { lib::llvm::llvm::Attribute); } +// Tell LLVM to emit the information necessary to unwind the stack for the +// function f. fn set_uwtable(ValueRef f) { llvm::LLVMAddFunctionAttr(f, lib::llvm::LLVMUWTableAttribute as @@ -7964,11 +7966,11 @@ fn process_fwding_mthd(@local_ctxt cx, @ty::method m, TypeRef llself_ty, // Set up the original method to be called. auto orig_mthd_ty = ty::method_ty_to_fn_ty(cx.ccx.tcx, *m); - auto llwith_obj_ty_real = val_ty(llwith_obj.val); + auto llwith_obj_ty = val_ty(llwith_obj.val); auto llorig_mthd_ty = type_of_fn_full(bcx.fcx.lcx.ccx, fake_span, ty::ty_fn_proto(bcx.fcx.lcx.ccx.tcx, orig_mthd_ty), - some[TypeRef](llwith_obj_ty_real), + some[TypeRef](llwith_obj_ty), m.inputs, m.output, vec::len[ast::ty_param](ty_params));