mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
cleanup
This commit is contained in:
parent
d42e987b12
commit
da3635de8e
2 changed files with 2 additions and 18 deletions
|
@ -919,12 +919,9 @@ impl<
|
|||
|
||||
fn build_roc_panic(&mut self) -> (&'a [u8], Vec<'a, Relocation>) {
|
||||
let mut out = bumpalo::vec![in self.env.arena];
|
||||
let mut relocs = bumpalo::vec![in self.env.arena];
|
||||
|
||||
let before = self.relocs.len();
|
||||
|
||||
CC::roc_panic(&mut out, &mut self.relocs);
|
||||
|
||||
let relocs = self.relocs.split_off(before);
|
||||
CC::roc_panic(&mut out, &mut relocs);
|
||||
|
||||
(out.into_bump_slice(), relocs)
|
||||
}
|
||||
|
|
|
@ -320,13 +320,6 @@ fn build_object<'a, B: Backend<'a>>(
|
|||
"free".into(),
|
||||
);
|
||||
|
||||
// generate_wrapper(
|
||||
// &mut backend,
|
||||
// &mut output,
|
||||
// "roc_panic".into(),
|
||||
// "roc_builtins.utils.test_panic".into(),
|
||||
// );
|
||||
|
||||
// Extra symbols only required on unix systems.
|
||||
if matches!(output.format(), BinaryFormat::Elf | BinaryFormat::MachO) {
|
||||
generate_wrapper(
|
||||
|
@ -357,12 +350,6 @@ fn build_object<'a, B: Backend<'a>>(
|
|||
let exposed_proc = build_exposed_proc(&mut backend, &proc);
|
||||
let exposed_generic_proc = build_exposed_generic_proc(&mut backend, &proc);
|
||||
|
||||
// ModuleId,
|
||||
// &mut STLayoutInterner<'a>,
|
||||
// &mut Interns,
|
||||
// &mut CodeGenHelp<'a>,
|
||||
// &mut Vec<'a, CallerProc<'a>>,
|
||||
|
||||
let (module_id, layout_interner, interns, code_gen_help, _) =
|
||||
backend.module_interns_helpers_mut();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue