From 86b0d28ae6104e5362b008cacbeca53953b24ab0 Mon Sep 17 00:00:00 2001 From: Vlamonster Date: Thu, 9 Nov 2023 04:15:37 +0100 Subject: [PATCH] Fix typo. --- compiler/src/passes/assign/assign.rs | 2 +- compiler/src/passes/assign/color_interference.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/src/passes/assign/assign.rs b/compiler/src/passes/assign/assign.rs index bf36927..264efd8 100644 --- a/compiler/src/passes/assign/assign.rs +++ b/compiler/src/passes/assign/assign.rs @@ -9,7 +9,7 @@ impl<'p> X86Selected<'p> { pub fn assign(self) -> X86Assigned<'p> { let program = self.include_liveness(); let interference = program.compute_interference(); - let (color_map, stack_space) = interference.solve(); + let (color_map, stack_space) = interference.color(); let blocks = program .blocks diff --git a/compiler/src/passes/assign/color_interference.rs b/compiler/src/passes/assign/color_interference.rs index 03ed537..4ec7197 100644 --- a/compiler/src/passes/assign/color_interference.rs +++ b/compiler/src/passes/assign/color_interference.rs @@ -6,7 +6,7 @@ use std::collections::{HashMap, HashSet}; impl<'p> InterferenceGraph<'p> { #[must_use] - pub fn solve(self) -> (HashMap, Arg>, usize) { + pub fn color(self) -> (HashMap, Arg>, usize) { let graph = self.0; let mut queue = Vec::new(); let mut node_map = HashMap::::new();