Set compiler config to be owned (following wasm-c-api)

This commit is contained in:
Syrus
2020-12-04 02:39:19 -08:00
parent 7a4ad45c9d
commit 13e6f29c29
48 changed files with 87 additions and 95 deletions

View File

@ -27,10 +27,8 @@ pub struct LLVMCompiler {
impl LLVMCompiler {
/// Creates a new LLVM compiler
pub fn new(config: &LLVM) -> LLVMCompiler {
LLVMCompiler {
config: config.clone(),
}
pub fn new(config: LLVM) -> LLVMCompiler {
LLVMCompiler { config }
}
/// Gets the config for this Compiler