}
}
- fn all_mem(cls: &[mut x86_64_reg_class]) {
+ fn all_mem(cls: &mut [x86_64_reg_class]) {
for uint::range(0, cls.len()) |i| {
cls[i] = memory_class;
}
}
- fn unify(cls: &[mut x86_64_reg_class],
+ fn unify(cls: &mut [x86_64_reg_class],
i: uint,
newv: x86_64_reg_class) {
if cls[i] == newv {
}
fn classify_struct(tys: &[TypeRef],
- cls: &[mut x86_64_reg_class], i: uint,
+ cls: &mut [x86_64_reg_class], i: uint,
off: uint) {
let mut field_off = off;
for vec::each(tys) |ty| {
}
fn classify(ty: TypeRef,
- cls: &[mut x86_64_reg_class], ix: uint,
+ cls: &mut [x86_64_reg_class], ix: uint,
off: uint) {
unsafe {
let t_align = ty_align(ty);
}
}
- fn fixup(ty: TypeRef, cls: &[mut x86_64_reg_class]) {
+ fn fixup(ty: TypeRef, cls: &mut [x86_64_reg_class]) {
unsafe {
let mut i = 0u;
let llty = llvm::LLVMGetTypeKind(ty) as int;
/*!
*
* In the event that we are invoking a method with a receiver
- * of a linear borrowed type like `&mut T` or `&[mut T]`,
+ * of a linear borrowed type like `&mut T` or `&mut [T]`,
* we will "reborrow" the receiver implicitly. For example, if
* you have a call `r.inc()` and where `r` has type `&mut T`,
* then we treat that like `(&mut *r).inc()`. This avoids