pub fn lookup_mach_backend(triple: Triple) -> Result<Box<dyn MachBackend>, LookupError> {
    match triple.architecture {
        Architecture::Aarch64 { .. } => Ok(Box::new(arm64::Arm64Backend::new())),
        #[cfg(feature = "new-x64")]
        Architecture::X86_64 => Ok(Box::new(x64::X64Backend::new())),
        _ => Err(LookupError::Unsupported),
    }
}
/// Return a MachBackend if supported.
Return a MachBackend if supported.
Return a MachBackend if supported .
pub fn lookup_mach_backend(triple: Triple) -> Result<Box<dyn MachBackend>, LookupError> {
    match triple.architecture {
        Architecture::Aarch64 { .. } => Ok(Box::new(arm64::Arm64Backend::new())),
        #[cfg(feature = "new-x64")]
        Architecture::X86_64 => Ok(Box::new(x64::X64Backend::new())),
        _ => Err(LookupError::Unsupported),
    }
}
pub fn lookup_mach_backend ( triple : Triple ) -> Result < Box < dyn MachBackend > , LookupError > { match triple . architecture { Architecture :: Aarch64 { .. } => Ok ( Box :: new ( arm64 :: Arm64Backend :: new ( ) ) ) , # [ cfg ( feature " " ) ] Architecture :: X86_64 => Ok ( Box :: new ( x64 :: X64Backend :: new ( ) ) ) , _ => Err ( LookupError :: Unsupported ) , } }
Return a MachBackend if supported.
Return a MachBackend if supported .
triple
Triple
triple
Triple