Mercurial > projects > ldc
diff gen/tollvm.cpp @ 758:f04dde6e882c
Added initial D2 support, D2 frontend and changes to codegen to make things compile.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Tue, 11 Nov 2008 01:38:48 +0100 |
parents | 4ac97ec7c18e |
children | 661384d6a936 |
line wrap: on
line diff
--- a/gen/tollvm.cpp Mon Nov 10 20:55:24 2008 +0100 +++ b/gen/tollvm.cpp Tue Nov 11 01:38:48 2008 +0100 @@ -102,7 +102,7 @@ // 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 @@ { 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); }