syntax: use distinct FloatTy from rustc_target.
We also sever syntax's dependency on rustc_target as a result. This should slightly improve pipe-lining. Moreover, some cleanup is done in related code.
This commit is contained in:
parent
bffc3d8073
commit
55f76cdb2f
19 changed files with 123 additions and 158 deletions
|
|
@ -843,13 +843,13 @@ fn basic_type_metadata(cx: &CodegenCx<'ll, 'tcx>, t: Ty<'tcx>) -> &'ll DIType {
|
|||
ty::Bool => ("bool", DW_ATE_boolean),
|
||||
ty::Char => ("char", DW_ATE_unsigned_char),
|
||||
ty::Int(int_ty) => {
|
||||
(int_ty.ty_to_string(), DW_ATE_signed)
|
||||
(int_ty.name_str(), DW_ATE_signed)
|
||||
},
|
||||
ty::Uint(uint_ty) => {
|
||||
(uint_ty.ty_to_string(), DW_ATE_unsigned)
|
||||
(uint_ty.name_str(), DW_ATE_unsigned)
|
||||
},
|
||||
ty::Float(float_ty) => {
|
||||
(float_ty.ty_to_string(), DW_ATE_float)
|
||||
(float_ty.name_str(), DW_ATE_float)
|
||||
},
|
||||
_ => bug!("debuginfo::basic_type_metadata - t is invalid type")
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue