mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
use &str instead of Ident in some key places
This commit is contained in:
parent
15f860e6d7
commit
76754e4d2a
11 changed files with 57 additions and 60 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue