add llvmvalueref to Parameter

This commit is contained in:
Luna 2019-09-28 11:32:36 -03:00
parent 178acc656f
commit 58713b20e3

View file

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