Merge pull request #692 from rtfeldman/refactor-layout

Extract LayoutIds from roc_gen to roc_mono::layout
This commit is contained in:
Richard Feldman 2020-11-15 12:04:43 -05:00 committed by GitHub
commit 346248a7c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 57 additions and 63 deletions

View file

@ -1,4 +1,3 @@
use crate::layout_id::LayoutIds;
use crate::llvm::build::{
cast_basic_basic, cast_struct_struct, create_entry_block_alloca, set_name, Env, Scope,
FAST_CALL_CONV, LLVM_SADD_WITH_OVERFLOW_I64,
@ -12,7 +11,7 @@ use inkwell::module::Linkage;
use inkwell::values::{BasicValueEnum, FunctionValue, IntValue, PointerValue, StructValue};
use inkwell::{AddressSpace, IntPredicate};
use roc_module::symbol::Symbol;
use roc_mono::layout::{Builtin, Layout, MemoryMode};
use roc_mono::layout::{Builtin, Layout, LayoutIds, MemoryMode};
pub const REFCOUNT_MAX: usize = 0 as usize;