Export a couple of types from cranelift_module that were meant to be exported (#5074)

This commit is contained in:
bjorn3
2022-10-19 17:52:24 +02:00
committed by GitHub
parent 5a4adde837
commit 0667a412d7
2 changed files with 10 additions and 2 deletions

View File

@@ -185,8 +185,11 @@ impl From<FuncOrDataId> for ModuleExtName {
/// Information about a function which can be called.
#[derive(Debug)]
pub struct FunctionDeclaration {
#[allow(missing_docs)]
pub name: String,
#[allow(missing_docs)]
pub linkage: Linkage,
#[allow(missing_docs)]
pub signature: ir::Signature,
}
@@ -298,9 +301,13 @@ pub type ModuleResult<T> = Result<T, ModuleError>;
/// Information about a data object which can be accessed.
#[derive(Debug)]
pub struct DataDeclaration {
#[allow(missing_docs)]
pub name: String,
#[allow(missing_docs)]
pub linkage: Linkage,
#[allow(missing_docs)]
pub writable: bool,
#[allow(missing_docs)]
pub tls: bool,
}