Renamed dynasm backend to singlepass

This commit is contained in:
Syrus
2019-04-11 12:44:03 -07:00
parent 1f06e90729
commit d67bfdb2c5
24 changed files with 100 additions and 76 deletions

View File

@ -20,13 +20,13 @@ macro_rules! assert_emscripten_output {
LLVMCompiler::new()
}
#[cfg(feature = "dynasm")]
#[cfg(feature = "singlepass")]
fn get_compiler() -> impl Compiler {
use wasmer_dynasm_backend::SinglePassCompiler;
use wasmer_singlepass_backend::SinglePassCompiler;
SinglePassCompiler::new()
}
#[cfg(not(any(feature = "llvm", feature = "clif", feature = "dynasm")))]
#[cfg(not(any(feature = "llvm", feature = "clif", feature = "singlepass")))]
fn get_compiler() -> impl Compiler {
panic!("compiler not specified, activate a compiler via features");
use wasmer_clif_backend::CraneliftCompiler;