Skip to content

Commit 71f5569

Browse files
committed
---
yaml --- r: 110079 b: refs/heads/auto c: b465394 h: refs/heads/master i: 110077: d8220e1 110075: 41c2e23 110071: 5c53d8a 110063: 18ce0ce 110047: 23b2dae 110015: 0a1d728 109951: 148951c 109823: 0444d12 109567: 3b702c0 v: v3
1 parent f2df6e5 commit 71f5569

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: 53b70a83c6931d2d22c99e2aecbc2ac89076123b
16+
refs/heads/auto: b4653941d6a960691249218205b58b5576ce21c7
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/librustc/middle/trans/type_.rs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ use syntax::abi::{X86, X86_64, Arm, Mips};
2020

2121
use std::c_str::ToCStr;
2222
use std::cast;
23-
use std::slice;
2423

2524
use std::libc::{c_uint};
2625

@@ -135,10 +134,6 @@ impl Type {
135134
}
136135
}
137136

138-
pub fn size_t(ccx: &CrateContext) -> Type {
139-
Type::int(ccx)
140-
}
141-
142137
pub fn func(args: &[Type], ret: &Type) -> Type {
143138
let vec : &[TypeRef] = unsafe { cast::transmute(args) };
144139
ty!(llvm::LLVMFunctionType(ret.to_ref(), vec.as_ptr(),
@@ -151,10 +146,6 @@ impl Type {
151146
args.len() as c_uint, True))
152147
}
153148

154-
pub fn ptr(ty: Type) -> Type {
155-
ty!(llvm::LLVMPointerType(ty.to_ref(), 0 as c_uint))
156-
}
157-
158149
pub fn struct_(ccx: &CrateContext, els: &[Type], packed: bool) -> Type {
159150
let els : &[TypeRef] = unsafe { cast::transmute(els) };
160151
ty!(llvm::LLVMStructTypeInContext(ccx.llcx, els.as_ptr(),
@@ -259,17 +250,6 @@ impl Type {
259250
ty!(llvm::LLVMPointerType(self.to_ref(), 0))
260251
}
261252

262-
pub fn get_field(&self, idx: uint) -> Type {
263-
unsafe {
264-
let num_fields = llvm::LLVMCountStructElementTypes(self.to_ref()) as uint;
265-
let mut elems = slice::from_elem(num_fields, 0 as TypeRef);
266-
267-
llvm::LLVMGetStructElementTypes(self.to_ref(), elems.as_mut_ptr());
268-
269-
Type::from_ref(elems[idx])
270-
}
271-
}
272-
273253
pub fn is_packed(&self) -> bool {
274254
unsafe {
275255
llvm::LLVMIsPackedStruct(self.to_ref()) == True

0 commit comments

Comments
 (0)