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.
This commit is contained in:
Christian Kamm
2008-07-22 23:06:46 +02:00
parent 566eac93fe
commit 8f20b1ed00
8 changed files with 60 additions and 195 deletions

View File

@@ -157,6 +157,10 @@ const LLType* DtoType(Type* t)
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);