Move UnwindInfo definition out of x86 ABI.
This commit moves the opaque definition of Windows x64 UnwindInfo out of the ISA and into a location that can be easily used by the top level `UnwindInfo` enum. This allows the `unwind` feature to be independent of the individual ISAs supported.
This commit is contained in:
@@ -3,14 +3,14 @@
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
pub mod systemv;
|
||||
pub mod winx64;
|
||||
|
||||
/// Represents unwind information for a single function.
|
||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||
#[cfg_attr(feature = "enable-serde", derive(Serialize, Deserialize))]
|
||||
pub enum UnwindInfo {
|
||||
/// Windows x64 ABI unwind information.
|
||||
#[cfg(feature = "x86")]
|
||||
WindowsX64(super::x86::unwind::windows::UnwindInfo),
|
||||
WindowsX64(winx64::UnwindInfo),
|
||||
/// System V ABI unwind information.
|
||||
SystemV(systemv::UnwindInfo),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user