Reorder the fields of Export::Function for consistency.

This commit is contained in:
Dan Gohman
2019-02-22 14:42:18 -08:00
parent cadead6a86
commit d7dc36e752

View File

@@ -12,10 +12,10 @@ pub enum Export {
Function { Function {
/// The address of the native-code function. /// The address of the native-code function.
address: *const VMFunctionBody, address: *const VMFunctionBody,
/// The function signature declaration, used for compatibilty checking.
signature: ir::Signature,
/// Pointer to the containing `VMContext`. /// Pointer to the containing `VMContext`.
vmctx: *mut VMContext, vmctx: *mut VMContext,
/// The function signature declaration, used for compatibilty checking.
signature: ir::Signature,
}, },
/// A table export value. /// A table export value.
@@ -53,13 +53,13 @@ impl Export {
/// Construct a function export value. /// Construct a function export value.
pub fn function( pub fn function(
address: *const VMFunctionBody, address: *const VMFunctionBody,
signature: ir::Signature,
vmctx: *mut VMContext, vmctx: *mut VMContext,
signature: ir::Signature,
) -> Self { ) -> Self {
Export::Function { Export::Function {
address, address,
signature,
vmctx, vmctx,
signature,
} }
} }