fix(llvm-backend) Remove unused imports.

This commit is contained in:
Ivan Enderlin
2019-03-29 10:03:40 +01:00
parent bf823d2826
commit a1ca7069af
6 changed files with 10 additions and 28 deletions

View File

@ -23,10 +23,7 @@ use wasmer_runtime_core::{
export::Context, export::Context,
module::{ModuleInfo, ModuleInner}, module::{ModuleInfo, ModuleInner},
structures::TypedIndex, structures::TypedIndex,
types::{ types::{FuncIndex, FuncSig, LocalFuncIndex, LocalOrImport, SigIndex, Type, Value},
FuncIndex, FuncSig, LocalFuncIndex, LocalOrImport, MemoryIndex, SigIndex, TableIndex, Type,
Value,
},
vm::{self, ImportBacking}, vm::{self, ImportBacking},
vmcalls, vmcalls,
}; };

View File

@ -3,14 +3,14 @@ use inkwell::{
context::Context, context::Context,
module::{Linkage, Module}, module::{Linkage, Module},
passes::PassManager, passes::PassManager,
types::{BasicType, BasicTypeEnum, FunctionType, IntType, PointerType}, types::{BasicType, BasicTypeEnum, FunctionType, PointerType},
values::{BasicValue, FloatValue, FunctionValue, IntValue, PhiValue, PointerValue}, values::{BasicValue, FloatValue, FunctionValue, IntValue, PhiValue, PointerValue},
AddressSpace, FloatPredicate, IntPredicate, AddressSpace, FloatPredicate, IntPredicate,
}; };
use smallvec::SmallVec; use smallvec::SmallVec;
use wasmer_runtime_core::{ use wasmer_runtime_core::{
memory::MemoryType, memory::MemoryType,
module::{ExportIndex, ModuleInfo}, module::ModuleInfo,
structures::{Map, SliceMap, TypedIndex}, structures::{Map, SliceMap, TypedIndex},
types::{ types::{
FuncIndex, FuncSig, GlobalIndex, LocalFuncIndex, LocalOrImport, MemoryIndex, SigIndex, FuncIndex, FuncSig, GlobalIndex, LocalFuncIndex, LocalOrImport, MemoryIndex, SigIndex,

View File

@ -4,10 +4,7 @@ use inkwell::{
context::Context, context::Context,
module::Module, module::Module,
types::{BasicType, FloatType, FunctionType, IntType, PointerType, StructType, VoidType}, types::{BasicType, FloatType, FunctionType, IntType, PointerType, StructType, VoidType},
values::{ values::{BasicValue, BasicValueEnum, FloatValue, FunctionValue, IntValue, PointerValue},
BasicValue, BasicValueEnum, FloatValue, FunctionValue, InstructionValue, IntValue,
PointerValue,
},
AddressSpace, AddressSpace,
}; };
use std::marker::PhantomData; use std::marker::PhantomData;

View File

@ -1,10 +1,5 @@
#![cfg_attr(nightly, feature(unwind_attributes))] #![cfg_attr(nightly, feature(unwind_attributes))]
use inkwell::{
execution_engine::JitFunction,
targets::{CodeModel, FileType, InitializationConfig, RelocMode, Target, TargetMachine},
OptimizationLevel,
};
use wasmer_runtime_core::{ use wasmer_runtime_core::{
backend::{Compiler, CompilerConfig, Token}, backend::{Compiler, CompilerConfig, Token},
cache::{Artifact, Error as CacheError}, cache::{Artifact, Error as CacheError},
@ -47,14 +42,10 @@ impl Compiler for LLVMCompiler {
// Create placeholder values here. // Create placeholder values here.
let cache_gen = { let cache_gen = {
use wasmer_runtime_core::backend::{ use wasmer_runtime_core::backend::{sys::Memory, CacheGen};
sys::Memory, CacheGen, ProtectedCaller, UserTrapper,
};
use wasmer_runtime_core::cache::Error as CacheError; use wasmer_runtime_core::cache::Error as CacheError;
use wasmer_runtime_core::error::RuntimeResult;
use wasmer_runtime_core::module::ModuleInfo; use wasmer_runtime_core::module::ModuleInfo;
use wasmer_runtime_core::types::{FuncIndex, Value};
use wasmer_runtime_core::vm;
struct Placeholder; struct Placeholder;
impl CacheGen for Placeholder { impl CacheGen for Placeholder {
fn generate_cache( fn generate_cache(

View File

@ -1,7 +1,5 @@
use libc::{c_void, siginfo_t}; use libc::{c_void, siginfo_t};
use nix::sys::signal::{ use nix::sys::signal::{sigaction, SaFlags, SigAction, SigHandler, SigSet, SIGBUS, SIGSEGV};
sigaction, SaFlags, SigAction, SigHandler, SigSet, Signal, SIGBUS, SIGFPE, SIGILL, SIGSEGV,
};
/// `__register_frame` and `__deregister_frame` on macos take a single fde as an /// `__register_frame` and `__deregister_frame` on macos take a single fde as an
/// argument, so we need to parse the fde table here. /// argument, so we need to parse the fde table here.

View File

@ -3,10 +3,9 @@ use inkwell::{
builder::Builder, builder::Builder,
context::Context, context::Context,
module::{Linkage, Module}, module::{Linkage, Module},
passes::PassManager, types::{BasicType, FunctionType},
types::{BasicType, BasicTypeEnum, FunctionType, PointerType}, values::FunctionValue,
values::{BasicValue, FunctionValue, PhiValue, PointerValue}, AddressSpace,
AddressSpace, FloatPredicate, IntPredicate,
}; };
use wasmer_runtime_core::{ use wasmer_runtime_core::{
module::ModuleInfo, module::ModuleInfo,