Update to work with latest llvmlite, which needs LLVM 3.6

This commit is contained in:
Eli Bendersky 2015-07-15 05:48:21 -07:00
commit 54d82e9f37
5 changed files with 21 additions and 21 deletions

View file

@ -385,7 +385,7 @@ class LLVMCodeGenerator(object):
return getattr(self, method)(node)
def _codegen_NumberExprAST(self, node):
return self.builder.constant(ir.DoubleType(), float(node.val))
return ir.Constant(ir.DoubleType(), float(node.val))
def _codegen_VariableExprAST(self, node):
return self.func_symtab[node.name]