vicis 0.1.0

Manipulate LLVM-IR in Pure Rust
Documentation
pub mod parser;

pub use parser::parse;

use std::fmt;

#[derive(Clone, Copy, Eq, PartialEq)]
pub enum PreemptionSpecifier {
    DsoPreemptable,
    DsoLocal,
}

impl fmt::Debug for PreemptionSpecifier {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        match self {
            Self::DsoPreemptable => write!(f, "dso_preemptable"),
            Self::DsoLocal => write!(f, "dso_local"),
        }
    }
}