diff gen/tollvm.cpp @ 379:d632801b15f0

Introducing opaque type to dmd frontent to be used with certain runtime array and aa args and returns. There are still some bugs with aas.
author Christian Kamm <kamm incasoftware de>
date Tue, 22 Jul 2008 23:06:46 +0200
parents bfb9d28f045a
children 6590ec13f14d
line wrap: on
line diff
--- a/gen/tollvm.cpp	Tue Jul 22 19:24:40 2008 +0200
+++ b/gen/tollvm.cpp	Tue Jul 22 23:06:46 2008 +0200
@@ -157,6 +157,10 @@
         return getPtrToType(LLStructType::get(DtoType(taa->key), DtoType(taa->next), 0));
     }
 
+    // opaque type
+    case Topaque:
+        return llvm::OpaqueType::get();
+
     default:
         printf("trying to convert unknown type with value %d\n", t->ty);
         assert(0);