Mercurial > projects > dang
changeset 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 |
files | gen/CodeGen.d sema/DType.d |
diffstat | 2 files changed, 10 insertions(+), 2 deletions(-) [+] |
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:
--- a/sema/DType.d Sun May 25 18:20:13 2008 +0200 +++ b/sema/DType.d Sun May 25 18:24:16 2008 +0200 @@ -164,9 +164,9 @@ Long = new DInteger("long", 64, false); ULong = new DInteger("ulong", 64, true); - Float = new DReal("float", 32); + Float = new DReal("float", 32); Double = new DReal("double", 64); - Real = Double; + Real = new DReal("real", 80); Char = new DInteger("char", 8, true); WChar = new DInteger("wchar", 16, true);