mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Move LLVM scope ops to a separate module
This commit is contained in:
parent
470ed119c2
commit
8d3d4ed9d8
7 changed files with 115 additions and 61 deletions
|
@ -11,11 +11,12 @@ use roc_mono::layout::{InLayout, LayoutInterner, LayoutRepr, STLayoutInterner};
|
|||
use crate::llvm::build::use_roc_value;
|
||||
|
||||
use super::{
|
||||
build::{load_symbol_and_layout, BuilderExt, Env, Scope},
|
||||
build::{load_symbol_and_layout, BuilderExt, Env},
|
||||
convert::basic_type_from_layout,
|
||||
scope::Scope,
|
||||
};
|
||||
|
||||
pub enum RocStructType<'ctx> {
|
||||
pub(crate) enum RocStructType<'ctx> {
|
||||
/// The roc struct should be passed by rvalue.
|
||||
ByValue(StructType<'ctx>),
|
||||
}
|
||||
|
@ -60,7 +61,7 @@ fn basic_type_from_record<'a, 'ctx>(
|
|||
.struct_type(field_types.into_bump_slice(), false)
|
||||
}
|
||||
|
||||
pub enum RocStruct<'ctx> {
|
||||
pub(crate) enum RocStruct<'ctx> {
|
||||
/// The roc struct should be passed by rvalue.
|
||||
ByValue(StructValue<'ctx>),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue