Mercurial > projects > ldc
diff ir/irtypeclass.cpp @ 1571:8d086d552909
IntegerType is now contextifed.
Requires llvm >= 78969. resistor says this will be the last context API change :)
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Fri, 14 Aug 2009 00:39:18 +0200 |
parents | 755abafbf25d |
children |
line wrap: on
line diff
--- a/ir/irtypeclass.cpp Thu Aug 06 16:02:14 2009 +0200 +++ b/ir/irtypeclass.cpp Fri Aug 14 00:39:18 2009 +0200 @@ -23,7 +23,7 @@ : IrTypeAggr(cd), cd(cd), tc((TypeClass*)cd->type), - vtbl_pa(llvm::OpaqueType::get()) + vtbl_pa(llvm::OpaqueType::get(gIR->context())) { vtbl_size = cd->vtbl.dim; num_interface_vtbls = 0; @@ -234,7 +234,7 @@ else { // add monitor - defaultTypes.push_back(llvm::PointerType::get(llvm::Type::Int8Ty, 0)); + defaultTypes.push_back(llvm::PointerType::get(llvm::Type::getInt8Ty(gIR->context()), 0)); // we start right after the vtbl and monitor size_t offset = PTRSIZE * 2;