Remove some bogus white-space from llvm.rs

This commit is contained in:
Marijn Haverbeke 2011-09-20 13:25:04 +02:00
parent 35873a95d4
commit 8c85745452

View File

@ -943,41 +943,19 @@ fn tys_str(names: type_names, outer: [TypeRef], tys: [TypeRef]) -> str {
ret s;
}
alt kind {
// FIXME: more enum-as-int constants determined from Core::h;
// horrible, horrible. Complete as needed.
0 {
ret "Void";
}
0 { ret "Void"; }
1 { ret "Float"; }
2 { ret "Double"; }
3 { ret "X86_FP80"; }
4 { ret "FP128"; }
5 { ret "PPC_FP128"; }
6 { ret "Label"; }
7 {
ret "i" + std::int::str(llvm::LLVMGetIntTypeWidth(ty) as int);
}
8 {
let s = "fn(";
let out_ty: TypeRef = llvm::LLVMGetReturnType(ty);
@ -989,12 +967,6 @@ fn tys_str(names: type_names, outer: [TypeRef], tys: [TypeRef]) -> str {
s += type_to_str_inner(names, outer, out_ty);
ret s;
}
9 {
let s: str = "{";
let n_elts: uint = llvm::LLVMCountStructElementTypes(ty);
@ -1004,22 +976,10 @@ fn tys_str(names: type_names, outer: [TypeRef], tys: [TypeRef]) -> str {
s += "}";
ret s;
}
10 {
let el_ty = llvm::LLVMGetElementType(ty);
ret "[" + type_to_str_inner(names, outer, el_ty) + "]";
}
11 {
let i: uint = 0u;
for tout: TypeRef in outer0 {
@ -1032,15 +992,7 @@ fn tys_str(names: type_names, outer: [TypeRef], tys: [TypeRef]) -> str {
ret "*" +
type_to_str_inner(names, outer, llvm::LLVMGetElementType(ty));
}
12 {
ret "Opaque";
}
12 { ret "Opaque"; }
13 { ret "Vector"; }
14 { ret "Metadata"; }
_ { log_err #fmt["unknown TypeKind %d", kind as int]; fail; }