use &str instead of Ident in some key places

This commit is contained in:
Folkert 2022-04-30 20:37:11 +02:00
parent 15f860e6d7
commit 76754e4d2a
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
11 changed files with 57 additions and 60 deletions

View file

@ -4,7 +4,6 @@ use std::fmt::Write;
use code_builder::Align;
use roc_builtins::bitcode::{FloatWidth, IntWidth};
use roc_collections::all::MutMap;
use roc_module::ident::Ident;
use roc_module::low_level::{LowLevel, LowLevelWrapperType};
use roc_module::symbol::{Interns, Symbol};
use roc_mono::code_gen_help::{CodeGenHelp, HelperOp, REFCOUNT_MAX};
@ -183,7 +182,7 @@ impl<'a> WasmBackend<'a> {
.get_mut(&self.env.module_id)
.unwrap();
let ident_id = ident_ids.add_ident(&Ident::from(debug_name));
let ident_id = ident_ids.add_str(debug_name);
Symbol::new(self.env.module_id, ident_id)
}