Serialize ValueLabel and StackSlots (#888)

This commit is contained in:
Yury Delendik
2019-08-05 08:31:00 -05:00
committed by GitHub
parent 383ce584ae
commit 29b32b3062
5 changed files with 19 additions and 0 deletions

View File

@@ -7,8 +7,12 @@ use crate::ir::StackSlot;
use crate::isa::{RegInfo, RegUnit};
use core::fmt;
#[cfg(feature = "enable-serde")]
use serde::{Deserialize, Serialize};
/// Value location.
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
#[cfg_attr(feature = "enable-serde", derive(Serialize, Deserialize))]
pub enum ValueLoc {
/// This value has not been assigned to a location yet.
Unassigned,