mirror of
https://github.com/mii443/wasmer.git
synced 2025-08-25 01:39:26 +00:00
Simplified compiler config names
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
use crate::config::LLVMConfig;
|
||||
use crate::config::LLVM;
|
||||
use crate::trampoline::FuncTrampoline;
|
||||
use crate::translator::FuncTranslator;
|
||||
use rayon::prelude::{IntoParallelRefIterator, ParallelIterator};
|
||||
@ -14,19 +14,19 @@ use wasmer_compiler::{
|
||||
/// A compiler that compiles a WebAssembly module with LLVM, translating the Wasm to LLVM IR,
|
||||
/// optimizing it and then translating to assembly.
|
||||
pub struct LLVMCompiler {
|
||||
config: LLVMConfig,
|
||||
config: LLVM,
|
||||
}
|
||||
|
||||
impl LLVMCompiler {
|
||||
/// Creates a new LLVM compiler
|
||||
pub fn new(config: &LLVMConfig) -> LLVMCompiler {
|
||||
pub fn new(config: &LLVM) -> LLVMCompiler {
|
||||
LLVMCompiler {
|
||||
config: config.clone(),
|
||||
}
|
||||
}
|
||||
|
||||
/// Gets the config for this Compiler
|
||||
fn config(&self) -> &LLVMConfig {
|
||||
fn config(&self) -> &LLVM {
|
||||
&self.config
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user