Skip to content

Commit f43ed8f

Browse files
committed
Fix up ast types after literal changes.
1 parent 134585b commit f43ed8f

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

src/comp/middle/debuginfo.rs

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -239,22 +239,26 @@ fn get_basic_type_metadata(cx: @crate_ctxt, t: ty::t, ty: @ast::ty)
239239
}
240240
let (name, (size, align), encoding) = alt ty.node {
241241
ast::ty_bool. {("bool", size_and_align_of::<bool>(), DW_ATE_boolean)}
242-
ast::ty_int. {("int", size_and_align_of::<int>(), DW_ATE_signed)}
243-
ast::ty_uint. {("uint", size_and_align_of::<uint>(), DW_ATE_unsigned)}
244-
ast::ty_float. {("float", size_and_align_of::<float>(), DW_ATE_float)}
245-
ast::ty_machine(m) { alt m {
242+
ast::ty_int(m) { alt m {
243+
ast::ty_char. {("char", size_and_align_of::<char>(), DW_ATE_unsigned)}
244+
ast::ty_i. {("int", size_and_align_of::<int>(), DW_ATE_signed)}
246245
ast::ty_i8. {("i8", size_and_align_of::<i8>(), DW_ATE_signed_char)}
247246
ast::ty_i16. {("i16", size_and_align_of::<i16>(), DW_ATE_signed)}
248247
ast::ty_i32. {("i32", size_and_align_of::<i32>(), DW_ATE_signed)}
249248
ast::ty_i64. {("i64", size_and_align_of::<i64>(), DW_ATE_signed)}
249+
}}
250+
ast::ty_uint(m) { alt m {
251+
ast::ty_u. {("uint", size_and_align_of::<uint>(), DW_ATE_unsigned)}
250252
ast::ty_u8. {("u8", size_and_align_of::<u8>(), DW_ATE_unsigned_char)}
251253
ast::ty_u16. {("u16", size_and_align_of::<u16>(), DW_ATE_unsigned)}
252254
ast::ty_u32. {("u32", size_and_align_of::<u32>(), DW_ATE_unsigned)}
253255
ast::ty_u64. {("u64", size_and_align_of::<u64>(), DW_ATE_unsigned)}
256+
}}
257+
ast::ty_float(m) { alt m {
258+
ast::ty_f. {("float", size_and_align_of::<float>(), DW_ATE_float)}
254259
ast::ty_f32. {("f32", size_and_align_of::<f32>(), DW_ATE_float)}
255260
ast::ty_f64. {("f64", size_and_align_of::<f64>(), DW_ATE_float)}
256-
} }
257-
ast::ty_char. {("char", size_and_align_of::<char>(), DW_ATE_unsigned)}
261+
}}
258262
};
259263
let fname = filename_from_span(cx, ty.span);
260264
let file_node = get_file_metadata(cx, fname);
@@ -327,7 +331,7 @@ fn get_boxed_type_metadata(cx: @crate_ctxt, outer: ty::t, inner: ty::t,
327331
//let cu_node = get_compile_unit_metadata(cx, fname);
328332
let tcx = ccx_tcx(cx);
329333
let uint_t = ty::mk_uint(tcx);
330-
let uint_ty = @{node: ast::ty_uint, span: span};
334+
let uint_ty = @{node: ast::ty_uint(ast::ty_u), span: span};
331335
let refcount_type = get_basic_type_metadata(cx, uint_t, uint_ty);
332336
/*let refcount_ptr_type = get_pointer_type_metadata(cx,
333337
ty::mk_imm_uniq(tcx, uint_t),
@@ -389,11 +393,9 @@ fn get_ty_metadata(cx: @crate_ctxt, t: ty::t, ty: @ast::ty) -> @metadata<tydesc_
389393
ty::ty_nil. { ast::ty_nil }
390394
ty::ty_bot. { ast::ty_bot }
391395
ty::ty_bool. { ast::ty_bool }
392-
ty::ty_int. { ast::ty_int }
393-
ty::ty_float. { ast::ty_float }
394-
ty::ty_uint. { ast::ty_uint }
395-
ty::ty_machine(mt) { ast::ty_machine(mt) }
396-
ty::ty_char. { ast::ty_char }
396+
ty::ty_int(t) { ast::ty_int(t) }
397+
ty::ty_float(t) { ast::ty_float(t) }
398+
ty::ty_uint(t) { ast::ty_uint(t) }
397399
ty::ty_box(mt) { ast::ty_box({ty: t_to_ty(cx, mt.ty, span),
398400
mut: mt.mut}) }
399401
ty::ty_uniq(mt) { ast::ty_uniq({ty: t_to_ty(cx, mt.ty, span),

0 commit comments

Comments
 (0)