Some modifications for emitting mutable alloca slots done

This commit is contained in:
Eli Bendersky 2015-02-01 07:05:28 -08:00
commit b63f55ee97
2 changed files with 918 additions and 4 deletions

View file

@ -1,4 +1,4 @@
# Chapter 5 - Extending the language: User-defined Operators
# Chapter 6 - Extending the language: User-defined Operators
from collections import namedtuple
from ctypes import CFUNCTYPE, c_double
@ -742,9 +742,6 @@ class LLVMCodeGenerator(object):
self.func_symtab = {}
# Create the function skeleton from the prototype.
func = self._codegen(node.proto)
# Create the entry BB in the function and set the builder to it.
bb_entry = func.append_basic_block('entry')
self.builder = ir.IRBuilder(bb_entry)