Mercurial > projects > ldc
comparison gen/llvmhelpers.h @ 1186:7562457bb7f3
Automated merge with http://hg.dsource.org/projects/ldc
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Wed, 01 Apr 2009 00:13:21 +0200 |
parents | 8baf611f0009 |
children | 83d3b25c2213 |
comparison
equal
deleted
inserted
replaced
1184:a6dbd571d417 | 1186:7562457bb7f3 |
---|---|
99 /// Generates the constant initializer for a global variable. | 99 /// Generates the constant initializer for a global variable. |
100 void DtoConstInitGlobal(VarDeclaration* vd); | 100 void DtoConstInitGlobal(VarDeclaration* vd); |
101 | 101 |
102 // declaration inside a declarationexp | 102 // declaration inside a declarationexp |
103 DValue* DtoDeclarationExp(Dsymbol* declaration); | 103 DValue* DtoDeclarationExp(Dsymbol* declaration); |
104 LLValue* DtoRawVarDeclaration(VarDeclaration* var); | 104 LLValue* DtoRawVarDeclaration(VarDeclaration* var, LLValue* addr = 0); |
105 | 105 |
106 // initializer helpers | 106 // initializer helpers |
107 LLConstant* DtoConstInitializer(Loc loc, Type* type, Initializer* init); | 107 LLConstant* DtoConstInitializer(Loc loc, Type* type, Initializer* init); |
108 LLConstant* DtoConstExpInit(Loc loc, Type* t, Expression* exp); | 108 LLConstant* DtoConstExpInit(Loc loc, Type* t, Expression* exp); |
109 DValue* DtoInitializer(LLValue* target, Initializer* init); | 109 DValue* DtoInitializer(LLValue* target, Initializer* init); |