Mercurial > projects > ldc
comparison gen/structs.cpp @ 1569:755abafbf25d
Push the context through StructType::get.
Requires LLVM >= 78258. Also remove old #if's.
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Thu, 06 Aug 2009 01:47:39 +0200 |
parents | 1d5c3354b3c2 |
children | 8d086d552909 |
comparison
equal
deleted
inserted
replaced
1568:a591aa6bd6dc | 1569:755abafbf25d |
---|---|
360 } else { | 360 } else { |
361 fty = DtoType(vd->type); | 361 fty = DtoType(vd->type); |
362 } | 362 } |
363 types.push_back(fty); | 363 types.push_back(fty); |
364 } | 364 } |
365 LLType* Ty = LLStructType::get(types); | 365 LLType* Ty = LLStructType::get(gIR->context(), types); |
366 cache.insert(std::make_pair(dty, Ty)); | 366 cache.insert(std::make_pair(dty, Ty)); |
367 return Ty; | 367 return Ty; |
368 } | 368 } |
369 | 369 |
370 /// Return the struct value represented by v without the padding fields. | 370 /// Return the struct value represented by v without the padding fields. |