mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-22 12:54:08 +00:00
gen_dev: generate all functions they may be need if a function pointer is used
This commit is contained in:
parent
95be1a1b6d
commit
c609df2d74
2 changed files with 1 additions and 14 deletions
|
@ -1,5 +1,5 @@
|
|||
use crate::generic64::{aarch64, x86_64, Backend64Bit};
|
||||
use crate::{Backend, Env, Relocation, INLINED_SYMBOLS};
|
||||
use crate::{Backend, Env, Relocation};
|
||||
use bumpalo::collections::Vec;
|
||||
use object::write;
|
||||
use object::write::{Object, StandardSection, Symbol, SymbolSection};
|
||||
|
@ -84,11 +84,6 @@ fn build_object<'a, B: Backend<'a>>(
|
|||
let mut layout_ids = roc_mono::layout::LayoutIds::default();
|
||||
let mut procs = Vec::with_capacity_in(procedures.len(), env.arena);
|
||||
for ((sym, layout), proc) in procedures {
|
||||
// This is temporary until we support passing args to functions.
|
||||
if INLINED_SYMBOLS.contains(&sym) {
|
||||
continue;
|
||||
}
|
||||
|
||||
let fn_name = layout_ids
|
||||
.get(sym, &layout)
|
||||
.to_symbol_string(sym, &env.interns);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue