Nicer printer of LLVM array types.

This commit is contained in:
Eric Holk 2011-05-20 14:07:49 -07:00
parent 219351e4b9
commit 41b3979990

View File

@ -1539,7 +1539,10 @@ fn tys_str(type_names names,
ret s;
}
case (10) { ret "Array"; }
case (10) {
auto el_ty = llvm::LLVMGetElementType(ty);
ret "[" + type_to_str_inner(names, outer, el_ty) + "]";
}
case (11) {
let uint i = 0u;