Implement Debug for ArgAction and Affinity.

This commit is contained in:
Dan Gohman
2018-03-12 10:28:32 -07:00
parent ad363d7e6b
commit e81a27fb5d
2 changed files with 2 additions and 2 deletions

View File

@@ -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),

View File

@@ -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.
///