Mercurial > projects > ldc
comparison gen/complex.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 |
---|---|
14 | 14 |
15 const llvm::StructType* DtoComplexType(Type* type) | 15 const llvm::StructType* DtoComplexType(Type* type) |
16 { | 16 { |
17 Type* t = type->toBasetype(); | 17 Type* t = type->toBasetype(); |
18 const LLType* base = DtoComplexBaseType(t); | 18 const LLType* base = DtoComplexBaseType(t); |
19 return llvm::StructType::get(base, base, NULL); | 19 return llvm::StructType::get(gIR->context(), base, base, NULL); |
20 } | 20 } |
21 | 21 |
22 const LLType* DtoComplexBaseType(Type* t) | 22 const LLType* DtoComplexBaseType(Type* t) |
23 { | 23 { |
24 TY ty = t->toBasetype()->ty; | 24 TY ty = t->toBasetype()->ty; |