llvm_scratch/core/target_triple/
abi.rs

1use std::fmt;
2
3#[derive(PartialEq, PartialOrd, Eq, Ord, Debug)]
4pub enum ABI {
5    GNU,
6}
7
8impl fmt::Display for ABI {
9    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
10        let abi_str = match self {
11            Self::GNU => "gnu",
12        };
13
14        write!(f, "{}", abi_str)
15    }
16}