diff gen/CodeGen.d @ 77:13eea2c4e60d new_gen

Now able of --ast-dump-code with Pointer types and also codeGen int* x;
author Anders Johnsen <skabet@gmail.com>
date Fri, 02 May 2008 16:37:13 +0200
parents 192da4976daa
children 81813366ef92
line wrap: on
line diff
--- a/gen/CodeGen.d	Fri May 02 15:48:57 2008 +0200
+++ b/gen/CodeGen.d	Fri May 02 16:37:13 2008 +0200
@@ -661,6 +661,12 @@
 */
             return res;
         }
+        else if (auto f = t.asPointer)
+        {
+            Type res = PointerType.Get(llvm(f.pointerOf));
+            type_map[t] = res;
+            return res;
+        }
         assert(0, "Only integers, structs and functions are supported");
     }