Mercurial > projects > ldc
comparison gen/llvmhelpers.h @ 796:6e7a4c3b64d2
Error instead of assert when trying to build a default initializer for void[n].
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 29 Nov 2008 12:28:10 +0100 |
parents | 4adf0f742896 |
children | 340acf1535d0 |
comparison
equal
deleted
inserted
replaced
795:06ba66bc0689 | 796:6e7a4c3b64d2 |
---|---|
84 // declaration inside a declarationexp | 84 // declaration inside a declarationexp |
85 DValue* DtoDeclarationExp(Dsymbol* declaration); | 85 DValue* DtoDeclarationExp(Dsymbol* declaration); |
86 LLValue* DtoRawVarDeclaration(VarDeclaration* var); | 86 LLValue* DtoRawVarDeclaration(VarDeclaration* var); |
87 | 87 |
88 // initializer helpers | 88 // initializer helpers |
89 LLConstant* DtoConstInitializer(Type* type, Initializer* init); | 89 LLConstant* DtoConstInitializer(Loc& loc, Type* type, Initializer* init); |
90 LLConstant* DtoConstFieldInitializer(Type* type, Initializer* init); | 90 LLConstant* DtoConstFieldInitializer(Loc& loc, Type* type, Initializer* init); |
91 DValue* DtoInitializer(LLValue* target, Initializer* init); | 91 DValue* DtoInitializer(LLValue* target, Initializer* init); |
92 | 92 |
93 // annotation generator | 93 // annotation generator |
94 void DtoAnnotation(const char* str); | 94 void DtoAnnotation(const char* str); |
95 | 95 |
107 | 107 |
108 // target stuff | 108 // target stuff |
109 void findDefaultTarget(); | 109 void findDefaultTarget(); |
110 | 110 |
111 /// get the default initializer of the type | 111 /// get the default initializer of the type |
112 LLConstant* DtoDefaultInit(Type* t); | 112 LLConstant* DtoDefaultInit(Loc& loc, Type* t); |
113 | 113 |
114 // fixup an overloaded intrinsic name string | 114 // fixup an overloaded intrinsic name string |
115 void DtoOverloadedIntrinsicName(TemplateInstance* ti, TemplateDeclaration* td, std::string& name); | 115 void DtoOverloadedIntrinsicName(TemplateInstance* ti, TemplateDeclaration* td, std::string& name); |
116 | 116 |
117 //////////////////////////////////////////// | 117 //////////////////////////////////////////// |