Mercurial > projects > ldc
diff gen/tollvm.cpp @ 1024:9167d492cbc2
Abstracted more (most) ABI details out of the normal codegen.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Tue, 03 Mar 2009 02:51:21 +0100 |
parents | 18ad5601dff7 |
children | 32ead42679d1 |
line wrap: on
line diff
--- a/gen/tollvm.cpp Sun Mar 01 22:40:15 2009 +0100 +++ b/gen/tollvm.cpp Tue Mar 03 02:51:21 2009 +0100 @@ -227,7 +227,7 @@ { assert(t->ty == Tdelegate); const LLType* i8ptr = getVoidPtrType(); - const LLType* func = DtoFunctionType(t->nextOf(), NULL, i8ptr); + const LLType* func = DtoFunctionType(t->nextOf(), NULL, Type::tvoid->pointerTo()); const LLType* funcptr = getPtrToType(func); return LLStructType::get(i8ptr, funcptr, NULL); }