add llvmvalueref to Parameter

This commit is contained in:
Luna 2019-09-28 11:32:36 -03:00
parent 178acc656f
commit 58713b20e3
1 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,6 @@
const std = @import("std");
const ast = @import("ast.zig");
const llvm = @import("llvm.zig");
pub const CompilationError = error{
TypeError,
@ -79,6 +80,7 @@ pub const Scope = struct {
pub const Parameter = struct {
idx: usize,
typ: SymbolUnderlyingType,
alloca: ?llvm.LLVMValueRef = null,
};
pub const ParameterMap = std.StringHashMap(Parameter);