comparison ir/irvar.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 0c03ba6f7c24
children 40bd4a0d4870
comparison
equal deleted inserted replaced
1570:ab03cfb3a212 1571:8d086d552909
16 ////////////////////////////////////////////////////////////////////////////// 16 //////////////////////////////////////////////////////////////////////////////
17 ////////////////////////////////////////////////////////////////////////////// 17 //////////////////////////////////////////////////////////////////////////////
18 ////////////////////////////////////////////////////////////////////////////// 18 //////////////////////////////////////////////////////////////////////////////
19 19
20 IrGlobal::IrGlobal(VarDeclaration* v): IrVar(v), 20 IrGlobal::IrGlobal(VarDeclaration* v): IrVar(v),
21 type(llvm::OpaqueType::get()) 21 type(llvm::OpaqueType::get(llvm::getGlobalContext()))
22 { 22 {
23 constInit = NULL; 23 constInit = NULL;
24 } 24 }
25 25
26 ////////////////////////////////////////////////////////////////////////////// 26 //////////////////////////////////////////////////////////////////////////////