Added initial D2 support, D2 frontend and changes to codegen to make things compile.

This commit is contained in:
Tomas Lindquist Olsen
2008-11-11 01:38:48 +01:00
parent fe49ee6448
commit c4c1c1d72e
115 changed files with 83772 additions and 110 deletions

View File

@@ -102,7 +102,7 @@ const LLType* DtoType(Type* t)
// pointers
case Tpointer:
// getPtrToType checks for void itself
return getPtrToType(DtoType(t->next));
return getPtrToType(DtoType(t->nextOf()));
// arrays
case Tarray:
@@ -227,7 +227,7 @@ const LLStructType* DtoDelegateType(Type* t)
{
assert(t->ty == Tdelegate);
const LLType* i8ptr = getVoidPtrType();
const LLType* func = DtoFunctionType(t->next, NULL, i8ptr);
const LLType* func = DtoFunctionType(t->nextOf(), NULL, i8ptr);
const LLType* funcptr = getPtrToType(func);
return LLStructType::get(i8ptr, funcptr, 0);
}