Mercurial > projects > ldc
comparison gen/tollvm.cpp @ 723:55f6c2e454d7
Implemented correct parameter order according to x86-32 ABI documentation.
Changed AA types to just a void* .
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Sat, 25 Oct 2008 06:03:28 +0200 |
parents | 7261ff0f95ff |
children | 4ac97ec7c18e |
comparison
equal
deleted
inserted
replaced
722:bd56056a581f | 723:55f6c2e454d7 |
---|---|
161 return DtoType(bt); | 161 return DtoType(bt); |
162 } | 162 } |
163 | 163 |
164 // associative arrays | 164 // associative arrays |
165 case Taarray: | 165 case Taarray: |
166 #if 1 | |
167 return getVoidPtrType(); | |
168 #else | |
166 { | 169 { |
167 TypeAArray* taa = (TypeAArray*)t; | 170 TypeAArray* taa = (TypeAArray*)t; |
168 // aa key/val can't be void | 171 // aa key/val can't be void |
169 return getPtrToType(LLStructType::get(DtoType(taa->key), DtoType(taa->next), 0)); | 172 return getPtrToType(LLStructType::get(DtoType(taa->key), DtoType(taa->next), 0)); |
170 } | 173 } |
174 #endif | |
171 | 175 |
172 /* | 176 /* |
173 Not needed atm as VarDecls for tuples are rewritten as a string of | 177 Not needed atm as VarDecls for tuples are rewritten as a string of |
174 VarDecls for the fields (u -> _u_field_0, ...) | 178 VarDecls for the fields (u -> _u_field_0, ...) |
175 | 179 |