From e81a27fb5d57cc2782bc442e33e87a6ceb9160cd Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 12 Mar 2018 10:28:32 -0700 Subject: [PATCH] Implement Debug for `ArgAction` and `Affinity`. --- lib/cretonne/src/abi.rs | 2 +- lib/cretonne/src/regalloc/affinity.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cretonne/src/abi.rs b/lib/cretonne/src/abi.rs index 5c121824aa..05c96c79d5 100644 --- a/lib/cretonne/src/abi.rs +++ b/lib/cretonne/src/abi.rs @@ -11,7 +11,7 @@ use std::cmp::Ordering; /// /// An argument may go through a sequence of legalization steps before it reaches the final /// `Assign` action. -#[derive(Clone, Copy)] +#[derive(Clone, Copy, Debug)] pub enum ArgAction { /// Assign the argument to the given location. Assign(ArgumentLoc), diff --git a/lib/cretonne/src/regalloc/affinity.rs b/lib/cretonne/src/regalloc/affinity.rs index 1c50cbbbab..7d85ae8721 100644 --- a/lib/cretonne/src/regalloc/affinity.rs +++ b/lib/cretonne/src/regalloc/affinity.rs @@ -13,7 +13,7 @@ use ir::{AbiParam, ArgumentLoc}; use isa::{TargetIsa, RegInfo, RegClassIndex, OperandConstraint, ConstraintKind}; /// Preferred register allocation for an SSA value. -#[derive(Clone, Copy)] +#[derive(Clone, Copy, Debug)] pub enum Affinity { /// No affinity. ///