Mercurial > projects > ldc
diff ir/irtypefunction.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/irtypefunction.cpp Thu Aug 06 16:02:14 2009 +0200 +++ b/ir/irtypefunction.cpp Fri Aug 14 00:39:18 2009 +0200 @@ -8,7 +8,7 @@ #include "ir/irtypefunction.h" IrTypeFunction::IrTypeFunction(Type * dt) -: IrType(dt, llvm::OpaqueType::get()) +: IrType(dt, llvm::OpaqueType::get(gIR->context())) { irfty = NULL; } @@ -29,7 +29,7 @@ ////////////////////////////////////////////////////////////////////////////// IrTypeDelegate::IrTypeDelegate(Type * dt) -: IrType(dt, llvm::OpaqueType::get()) +: IrType(dt, llvm::OpaqueType::get(gIR->context())) { }