Simplified compiler config removing mutable features and target

This commit is contained in:
Syrus
2020-05-02 15:22:05 -07:00
parent 4e36cf987b
commit 6a06af1b1b
4 changed files with 0 additions and 40 deletions

View File

@@ -135,23 +135,12 @@ impl CompilerConfig for LLVMConfig {
&self.features
}
/// Gets the WebAssembly features, mutable
fn features_mut(&mut self) -> &mut Features {
&mut self.features
}
/// Gets the target that we will use for compiling
/// the WebAssembly module
fn target(&self) -> &Target {
&self.target
}
/// Gets the target that we will use for compiling
/// the WebAssembly module, mutable
fn target_mut(&mut self) -> &mut Target {
&mut self.target
}
/// Transform it into the compiler
fn compiler(&self) -> Box<dyn Compiler> {
Box::new(LLVMCompiler::new(&self))