Browse Source
This exposes the functionality of `fde::map_reg` on the `TargetIsa` trait, avoiding compilation errors on architectures where register mapping is not yet supported. The change is conditially compiled under the `unwind` feature.pull/1492/head
Andrew Brown
5 years ago
7 changed files with 39 additions and 28 deletions
@ -0,0 +1,14 @@ |
|||
//! Support for FDE data generation.
|
|||
use thiserror::Error; |
|||
|
|||
/// Enumerate the errors possible in mapping Cranelift registers to their DWARF equivalent.
|
|||
#[allow(missing_docs)] |
|||
#[derive(Error, Debug)] |
|||
pub enum RegisterMappingError { |
|||
#[error("unable to find bank for register info")] |
|||
MissingBank, |
|||
#[error("register mapping is currently only implemented for x86_64")] |
|||
UnsupportedArchitecture, |
|||
#[error("unsupported register bank: {0}")] |
|||
UnsupportedRegisterBank(&'static str), |
|||
} |
Loading…
Reference in new issue