mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
Move add_intrinsics back
This commit is contained in:
parent
fae2aac5f8
commit
6c4ba49086
4 changed files with 8 additions and 17 deletions
|
@ -4,7 +4,6 @@ use roc_build::program::FunctionIterator;
|
|||
use roc_can::builtins::builtin_defs_map;
|
||||
use roc_can::def::Def;
|
||||
use roc_collections::all::{MutMap, MutSet};
|
||||
use roc_gen::llvm::build::add_intrinsics;
|
||||
use roc_gen::llvm::externs::add_default_roc_externs;
|
||||
use roc_module::symbol::Symbol;
|
||||
use roc_types::subs::VarStore;
|
||||
|
@ -185,12 +184,9 @@ pub fn helper<'a>(
|
|||
let module = roc_gen::llvm::build::module_from_builtins(context, "app");
|
||||
|
||||
// Add roc_alloc, roc_realloc, and roc_dealloc, since the repl has no
|
||||
// platform to provide them. These must be added *before* adding intrinsics!
|
||||
// platform to provide them.
|
||||
add_default_roc_externs(context, &module, &builder, ptr_bytes);
|
||||
|
||||
// Add LLVM intrinsics.
|
||||
add_intrinsics(context, &module);
|
||||
|
||||
// strip Zig debug stuff
|
||||
module.strip_debug_info();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue