comparison gen/dvalue.h @ 335:17b844102023 trunk

[svn r356] Fixed problem with array length assignment introduced in [355]
author lindquist
date Sat, 12 Jul 2008 17:04:36 +0200
parents 20446d22f832
children 6057fdf797d8
comparison
equal deleted inserted replaced
334:20446d22f832 335:17b844102023
190 Type* getRType() { return rtype; } 190 Type* getRType() { return rtype; }
191 virtual Type* getType() { return getRType(); } 191 virtual Type* getType() { return getRType(); }
192 virtual DLRValue* isLRValue() { return this; } 192 virtual DLRValue* isLRValue() { return this; }
193 }; 193 };
194 194
195 // array length d-value
196 struct DArrayLenValue : DLRValue
197 {
198 DArrayLenValue(Type* lt, LLValue* l, Type* rt, LLValue* r) : DLRValue(lt, l, rt, r) {}
199 virtual DArrayLenValue* isArrayLen() { return this; }
200 };
201
202 // complex number immediate d-value (much like slice) 195 // complex number immediate d-value (much like slice)
203 struct DComplexValue : DValue 196 struct DComplexValue : DValue
204 { 197 {
205 Type* type; 198 Type* type;
206 LLValue* re; 199 LLValue* re;