comparison gen/toir.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 f1f33c8dcd90
children 8d086d552909
comparison
equal deleted inserted replaced
1568:a591aa6bd6dc 1569:755abafbf25d
2515 std::vector<LLConstant*> constvals(values.size(), NULL); 2515 std::vector<LLConstant*> constvals(values.size(), NULL);
2516 for (size_t i = 0; i < values.size(); ++i) 2516 for (size_t i = 0; i < values.size(); ++i)
2517 constvals[i] = llvm::cast<LLConstant>(values[i]); 2517 constvals[i] = llvm::cast<LLConstant>(values[i]);
2518 2518
2519 // return constant struct 2519 // return constant struct
2520 return LLConstantStruct::get(constvals, sd->ir.irStruct->packed); 2520 return LLConstantStruct::get(gIR->context(), constvals, sd->ir.irStruct->packed);
2521 } 2521 }
2522 2522
2523 ////////////////////////////////////////////////////////////////////////////////////////// 2523 //////////////////////////////////////////////////////////////////////////////////////////
2524 2524
2525 DValue* InExp::toElem(IRState* p) 2525 DValue* InExp::toElem(IRState* p)