Merge remote-tracking branch 'origin/master' into feature/dynasm-backend

This commit is contained in:
losfair
2019-03-20 01:57:40 +08:00
8 changed files with 380 additions and 51 deletions

View File

@ -152,7 +152,8 @@ pub fn instantiate(wasm: &[u8], import_object: &ImportObject) -> error::Result<I
module.instantiate(import_object)
}
fn default_compiler() -> &'static dyn Compiler {
/// Get a single instance of the default compiler to use.
pub fn default_compiler() -> &'static dyn Compiler {
use lazy_static::lazy_static;
#[cfg(feature = "llvm")]