mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-08 21:10:32 +00:00
Use roc_target over target_lexicon
Tailors a target class for our needs. Replaces tons of uses across the entire compiler. This is a base for later adding new targets like thumb.
This commit is contained in:
parent
185262510c
commit
6dc5bfb1b7
72 changed files with 1008 additions and 1371 deletions
|
@ -28,7 +28,7 @@ use roc_mono::list_element_layout;
|
|||
mod generic64;
|
||||
mod object_builder;
|
||||
pub use object_builder::build_module;
|
||||
use roc_target::TargetInfo;
|
||||
use roc_target::Target;
|
||||
mod run_roc;
|
||||
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
|
@ -312,7 +312,7 @@ trait Backend<'a> {
|
|||
fn interns_mut(&mut self) -> &mut Interns;
|
||||
fn interner(&self) -> &STLayoutInterner<'a>;
|
||||
fn relocations_mut(&mut self) -> &mut Vec<'a, Relocation>;
|
||||
fn target_info(&self) -> TargetInfo;
|
||||
fn target(&self) -> Target;
|
||||
|
||||
fn interner_mut(&mut self) -> &mut STLayoutInterner<'a> {
|
||||
self.module_interns_helpers_mut().1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue