use super::*;
#[derive(Copy, Clone, Debug)]
pub enum AttributeIndex {
Function,
Parameter(u32),
Return,
}
impl AttributeIndex {
pub unsafe fn inner(&self) -> u32 {
use self::AttributeIndex::*;
match self {
&Function => LLVMAttributeFunctionIndex,
&Parameter(i) => i+1,
&Return => LLVMAttributeReturnIndex,
}
}
}