Skip to content

Commit 8fa655a

Browse files
committed
---
yaml --- r: 150511 b: refs/heads/try2 c: e53f48b h: refs/heads/master i: 150509: a32bc52 150507: b804532 150503: adbe2c7 150495: c989a51 v: v3
1 parent 4359705 commit 8fa655a

File tree

2 files changed

+1
-41
lines changed

2 files changed

+1
-41
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 8f385fc2e01c14cea8323e3dba86518bed306a9a
8+
refs/heads/try2: e53f48be34352c62c4dedba93cd9f774b4141849
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/librustc/middle/trans/common.rs

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ use middle::trans::datum;
2424
use middle::trans::datum::{Datum, Lvalue};
2525
use middle::trans::debuginfo;
2626
use middle::trans::type_::Type;
27-
use middle::ty::substs;
2827
use middle::ty;
2928
use middle::typeck;
3029
use util::ppaux::Repr;
@@ -456,14 +455,6 @@ impl<'a> Block<'a> {
456455
e.repr(self.tcx())
457456
}
458457

459-
pub fn expr_is_lval(&self, e: &ast::Expr) -> bool {
460-
ty::expr_is_lval(self.tcx(), self.ccx().maps.method_map, e)
461-
}
462-
463-
pub fn expr_kind(&self, e: &ast::Expr) -> ty::ExprKind {
464-
ty::expr_kind(self.tcx(), self.ccx().maps.method_map, e)
465-
}
466-
467458
pub fn def(&self, nid: ast::NodeId) -> ast::Def {
468459
match self.tcx().def_map.borrow().find(&nid) {
469460
Some(&v) => v,
@@ -504,13 +495,6 @@ pub fn rslt<'a>(bcx: &'a Block<'a>, val: ValueRef) -> Result<'a> {
504495
}
505496
}
506497

507-
impl<'a> Result<'a> {
508-
pub fn unpack(&self, bcx: &mut &'a Block<'a>) -> ValueRef {
509-
*bcx = self.bcx;
510-
return self.val;
511-
}
512-
}
513-
514498
pub fn val_ty(v: ValueRef) -> Type {
515499
unsafe {
516500
Type::from_ref(llvm::LLVMTypeOf(v))
@@ -749,22 +733,6 @@ pub struct mono_id_ {
749733

750734
pub type mono_id = @mono_id_;
751735

752-
pub fn umax(cx: &Block, a: ValueRef, b: ValueRef) -> ValueRef {
753-
let cond = build::ICmp(cx, lib::llvm::IntULT, a, b);
754-
return build::Select(cx, cond, b, a);
755-
}
756-
757-
pub fn umin(cx: &Block, a: ValueRef, b: ValueRef) -> ValueRef {
758-
let cond = build::ICmp(cx, lib::llvm::IntULT, a, b);
759-
return build::Select(cx, cond, a, b);
760-
}
761-
762-
pub fn align_to(cx: &Block, off: ValueRef, align: ValueRef) -> ValueRef {
763-
let mask = build::Sub(cx, align, C_int(cx.ccx(), 1));
764-
let bumped = build::Add(cx, off, mask);
765-
return build::And(cx, bumped, build::Not(cx, mask));
766-
}
767-
768736
pub fn monomorphize_type(bcx: &Block, t: ty::t) -> ty::t {
769737
match bcx.fcx.param_substs {
770738
Some(substs) => {
@@ -928,14 +896,6 @@ pub fn find_vtable(tcx: &ty::ctxt,
928896
param_bounds.get(n_bound).clone()
929897
}
930898

931-
pub fn dummy_substs(tps: Vec<ty::t> ) -> ty::substs {
932-
substs {
933-
regions: ty::ErasedRegions,
934-
self_ty: None,
935-
tps: tps
936-
}
937-
}
938-
939899
pub fn filename_and_line_num_from_span(bcx: &Block, span: Span)
940900
-> (ValueRef, ValueRef) {
941901
let loc = bcx.sess().codemap().lookup_char_pos(span.lo);

0 commit comments

Comments
 (0)