Mercurial > projects > ldc
comparison gen/llvmhelpers.h @ 1185:8baf611f0009
Fix nested references to 'ref' foreach variables.
These "walk around" the array being iterated over, so they're a bit trickier
than other variables to get right.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Wed, 01 Apr 2009 00:01:44 +0200 |
parents | 7d28dcbff23e |
children | 83d3b25c2213 |
comparison
equal
deleted
inserted
replaced
1183:df386fd4030e | 1185:8baf611f0009 |
---|---|
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); |