Update to work with latest llvmlite, which needs LLVM 3.6
This commit is contained in:
parent
f8002eb092
commit
54d82e9f37
5 changed files with 21 additions and 21 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue