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:
Brendan Hansknecht 2024-03-21 21:54:58 -07:00
parent 185262510c
commit 6dc5bfb1b7
No known key found for this signature in database
GPG key ID: 0EA784685083E75B
72 changed files with 1008 additions and 1371 deletions

View file

@ -11,7 +11,7 @@ use roc_parse::{join_alias_to_body, join_ann_to_body};
use roc_region::all::Loc;
use roc_repl_eval::gen::{compile_to_mono, Problems};
use roc_reporting::report::Palette;
use roc_target::TargetInfo;
use roc_target::Target;
#[derive(Debug, Clone, PartialEq)]
struct PastDef {
@ -54,7 +54,7 @@ impl ReplState {
&mut self,
arena: &'a Bump,
line: &str,
target_info: TargetInfo,
target: Target,
palette: Palette,
) -> ReplAction<'a> {
let pending_past_def;
@ -170,7 +170,7 @@ impl ReplState {
arena,
self.past_defs.iter().map(|def| def.src.as_str()),
src,
target_info,
target,
palette,
);