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

@@ -8,8 +8,12 @@ use std::ops::Bound::*;
use std::ops::Deref;
use std::vec::Vec;
#[cfg(feature = "enable-serde")]
use serde::{Deserialize, Serialize};
/// Value location range.
#[derive(Debug, Clone, Copy)]
#[cfg_attr(feature = "enable-serde", derive(Serialize, Deserialize))]
pub struct ValueLocRange {
/// The ValueLoc containing a ValueLabel during this range.
pub loc: ValueLoc,