Mercurial > projects > dang
diff gen/CodeGen.d @ 118:54585ad7e426
Added the DType -> llvm type mapping for some more types
author | Anders Halager <halager@gmail.com> |
---|---|
date | Sun, 25 May 2008 18:24:16 +0200 |
parents | 54955003765b |
children | c0b531362ca6 |
line wrap: on
line diff
--- a/gen/CodeGen.d Sun May 25 18:20:13 2008 +0200 +++ b/gen/CodeGen.d Sun May 25 18:24:16 2008 +0200 @@ -834,6 +834,14 @@ type_map[DType.UInt] = Type.Int32; type_map[DType.Long] = Type.Int64; type_map[DType.ULong] = Type.Int64; + + type_map[DType.Float] = Type.Float; + type_map[DType.Double] = Type.Double; + type_map[DType.Real] = Type.X86_FP80; + + type_map[DType.Char] = Type.Int8; + type_map[DType.WChar] = Type.Int16; + type_map[DType.DChar] = Type.Int32; } private: