1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
use super::super::super::basic::interface::parser::*;
use crate::utility::ptr::Ptr;

#[derive(Clone)]
pub(super) struct LabelData {
    pub name: String,
    pub def: Option<ParserRISCVLabel>,
    pub refs: Vec<Ptr<ParserRISCVLabel>>,
}

// impl PartialEq for LabelData {
//     fn eq(&self, other: &Self) -> bool {
//         self.name == other.name
//     }
// }

// impl Eq for LabelData {}

// impl PartialOrd for LabelData {
//     fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
//         Some(self.cmp(other))
//     }
// }

// impl Ord for LabelData {
//     fn cmp(&self, other: &Self) -> std::cmp::Ordering {
//         self.name.cmp(&other.name)
//     }
// }