Export wptype_to_type from wasmer_compiler.

Also fix up its error message when it fails.

Use it in compiler-llvm and remove one of compiler-llvm's copies of this function.
This commit is contained in:
Nick Lewycky
2020-06-02 11:06:15 -07:00
parent fa3242ce11
commit 04f2db1b82
4 changed files with 7 additions and 23 deletions

View File

@@ -84,8 +84,8 @@ pub use crate::target::{
};
#[cfg(feature = "translator")]
pub use crate::translator::{
to_wasm_error, translate_module, FunctionBodyData, ModuleEnvironment, ModuleInfoTranslation,
ModuleTranslationState,
to_wasm_error, translate_module, wptype_to_type, FunctionBodyData, ModuleEnvironment,
ModuleInfoTranslation, ModuleTranslationState,
};
pub use crate::trap::TrapInformation;
pub use crate::unwind::{CompiledFunctionUnwindInfo, FDERelocEntry, FunctionTableReloc};