comparison ir/irtypestruct.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 2292878925f4
children 8d086d552909
comparison
equal deleted inserted replaced
1568:a591aa6bd6dc 1569:755abafbf25d
217 { 217 {
218 add_zeros(defaultTypes, sd->structsize - offset); 218 add_zeros(defaultTypes, sd->structsize - offset);
219 } 219 }
220 220
221 // build the llvm type 221 // build the llvm type
222 const llvm::Type* st = llvm::StructType::get(defaultTypes, packed); 222 const llvm::Type* st = llvm::StructType::get(gIR->context(), defaultTypes, packed);
223 223
224 // refine type 224 // refine type
225 llvm::cast<llvm::OpaqueType>(pa.get())->refineAbstractTypeTo(st); 225 llvm::cast<llvm::OpaqueType>(pa.get())->refineAbstractTypeTo(st);
226 226
227 // name types 227 // name types