# HG changeset patch # User Anders Halager # Date 1211732656 -7200 # Node ID 54585ad7e4260f401d672819c7a1e4f4bed6ab93 # Parent 54955003765b9980f107e24ab8f3d4096a2a0268 Added the DType -> llvm type mapping for some more types diff -r 54955003765b -r 54585ad7e426 gen/CodeGen.d --- 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: diff -r 54955003765b -r 54585ad7e426 sema/DType.d --- 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);