comparison 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
comparison
equal deleted inserted replaced
1570:ab03cfb3a212 1571:8d086d552909
6 #include "gen/functions.h" 6 #include "gen/functions.h"
7 7
8 #include "ir/irtypefunction.h" 8 #include "ir/irtypefunction.h"
9 9
10 IrTypeFunction::IrTypeFunction(Type * dt) 10 IrTypeFunction::IrTypeFunction(Type * dt)
11 : IrType(dt, llvm::OpaqueType::get()) 11 : IrType(dt, llvm::OpaqueType::get(gIR->context()))
12 { 12 {
13 irfty = NULL; 13 irfty = NULL;
14 } 14 }
15 15
16 const llvm::Type * IrTypeFunction::buildType() 16 const llvm::Type * IrTypeFunction::buildType()
27 } 27 }
28 28
29 ////////////////////////////////////////////////////////////////////////////// 29 //////////////////////////////////////////////////////////////////////////////
30 30
31 IrTypeDelegate::IrTypeDelegate(Type * dt) 31 IrTypeDelegate::IrTypeDelegate(Type * dt)
32 : IrType(dt, llvm::OpaqueType::get()) 32 : IrType(dt, llvm::OpaqueType::get(gIR->context()))
33 { 33 {
34 } 34 }
35 35
36 const llvm::Type * IrTypeDelegate::buildType() 36 const llvm::Type * IrTypeDelegate::buildType()
37 { 37 {