public CodeGenerator(Assembly tree, string outFile) { _tree = tree; _outFile = outFile; _table = new SymbolTable(); }
private void GenerateAssembly(Assembly assembly, LLVMPassManagerRef fpm) { LLVMBuilderRef builder = LLVM.CreateBuilder(); foreach (Function f in assembly.Functions) { LLVMValueRef func = GenerateFunction(f, builder); LLVM.RunFunctionPassManager(fpm, func); } }