prism-llvm 0.1.0

A Rust abstraction layer for LLVM with a compilation pipeline.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::{error::Error, fmt::Display};

#[derive(Debug)]
pub enum ToolchainError {
    MissingTool(String),
}

impl Display for ToolchainError {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self {
            Self::MissingTool(tool) => {
                write!(f, "Missing tool: '{tool}'.")
            }
        }
    }
}

impl Error for ToolchainError {}