@@ -239,22 +239,26 @@ fn get_basic_type_metadata(cx: @crate_ctxt, t: ty::t, ty: @ast::ty)
239
239
}
240
240
let ( name, ( size, align) , encoding) = alt ty. node {
241
241
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 ) }
246
245
ast:: ty_i8. { ( "i8" , size_and_align_of :: < i8 > ( ) , DW_ATE_signed_char ) }
247
246
ast:: ty_i16. { ( "i16" , size_and_align_of :: < i16 > ( ) , DW_ATE_signed ) }
248
247
ast:: ty_i32. { ( "i32" , size_and_align_of :: < i32 > ( ) , DW_ATE_signed ) }
249
248
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 ) }
250
252
ast:: ty_u8. { ( "u8" , size_and_align_of :: < u8 > ( ) , DW_ATE_unsigned_char ) }
251
253
ast:: ty_u16. { ( "u16" , size_and_align_of :: < u16 > ( ) , DW_ATE_unsigned ) }
252
254
ast:: ty_u32. { ( "u32" , size_and_align_of :: < u32 > ( ) , DW_ATE_unsigned ) }
253
255
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 ) }
254
259
ast:: ty_f32. { ( "f32" , size_and_align_of :: < f32 > ( ) , DW_ATE_float ) }
255
260
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
+ } }
258
262
} ;
259
263
let fname = filename_from_span ( cx, ty. span ) ;
260
264
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,
327
331
//let cu_node = get_compile_unit_metadata(cx, fname);
328
332
let tcx = ccx_tcx ( cx) ;
329
333
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} ;
331
335
let refcount_type = get_basic_type_metadata ( cx, uint_t, uint_ty) ;
332
336
/*let refcount_ptr_type = get_pointer_type_metadata(cx,
333
337
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_
389
393
ty:: ty_nil. { ast:: ty_nil }
390
394
ty:: ty_bot. { ast:: ty_bot }
391
395
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) }
397
399
ty:: ty_box ( mt) { ast:: ty_box ( { ty: t_to_ty ( cx, mt. ty , span) ,
398
400
mut: mt. mut } ) }
399
401
ty:: ty_uniq ( mt) { ast:: ty_uniq ( { ty: t_to_ty ( cx, mt. ty , span) ,
0 commit comments