Mercurial > projects > ldc
diff gen/llvmhelpers.h @ 797:340acf1535d0
Removed KDevelop3 project files, CMake can generate them just fine!
Fixed function literals in static initializers.
Changed alignment of delegates from 2*PTRSIZE to just PTRSIZE.
Changed errors to go to stderr instead of stdout.
Fairly major rewriting of struct/union/class handling, STILL A BIT BUGGY !!!
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Sat, 29 Nov 2008 21:25:43 +0100 |
parents | 6e7a4c3b64d2 |
children | c62c6936635b |
line wrap: on
line diff
--- a/gen/llvmhelpers.h Sat Nov 29 12:28:10 2008 +0100 +++ b/gen/llvmhelpers.h Sat Nov 29 21:25:43 2008 +0100 @@ -86,8 +86,9 @@ LLValue* DtoRawVarDeclaration(VarDeclaration* var); // initializer helpers -LLConstant* DtoConstInitializer(Loc& loc, Type* type, Initializer* init); -LLConstant* DtoConstFieldInitializer(Loc& loc, Type* type, Initializer* init); +LLConstant* DtoConstInitializer(Loc loc, Type* type, Initializer* init); +LLConstant* DtoConstFieldInitializer(Loc loc, Type* type, Initializer* init); +LLConstant* DtoConstExpInit(Loc loc, Type* t, Expression* exp); DValue* DtoInitializer(LLValue* target, Initializer* init); // annotation generator @@ -108,9 +109,6 @@ // target stuff void findDefaultTarget(); -/// get the default initializer of the type -LLConstant* DtoDefaultInit(Loc& loc, Type* t); - // fixup an overloaded intrinsic name string void DtoOverloadedIntrinsicName(TemplateInstance* ti, TemplateDeclaration* td, std::string& name);