Run cargo fmt

This commit is contained in:
Mark McCaskey
2020-08-13 18:12:43 -07:00
parent 5049c543dc
commit 6e974b92cd
39 changed files with 77 additions and 77 deletions

View File

@ -6,13 +6,13 @@ use inkwell::memory_buffer::MemoryBuffer;
use inkwell::module::Module;
use inkwell::targets::FileType;
use rayon::prelude::{IntoParallelRefIterator, ParallelIterator};
use wasmer_types::entity::{EntityRef, PrimaryMap};
use wasmer_types::{FunctionIndex, LocalFunctionIndex, SignatureIndex};
use wasmer_compiler::{
Compilation, CompileError, CompileModuleInfo, Compiler, CustomSection, CustomSectionProtection,
Dwarf, FunctionBodyData, ModuleTranslationState, RelocationTarget, SectionBody, SectionIndex,
Symbol, SymbolRegistry, Target,
};
use wasmer_types::entity::{EntityRef, PrimaryMap};
use wasmer_types::{FunctionIndex, LocalFunctionIndex, SignatureIndex};
//use std::sync::{Arc, Mutex};

View File

@ -8,8 +8,8 @@ use itertools::Itertools;
use std::fmt::Debug;
use std::sync::Arc;
use target_lexicon::Architecture;
use wasmer_types::{FunctionType, LocalFunctionIndex};
use wasmer_compiler::{Compiler, CompilerConfig, FunctionMiddlewareGenerator, Target, Triple};
use wasmer_types::{FunctionType, LocalFunctionIndex};
/// The InkWell ModuleInfo type
pub type InkwellModule<'ctx> = inkwell::module::Module<'ctx>;

View File

@ -1,12 +1,12 @@
use std::collections::{HashMap, HashSet};
use std::convert::TryFrom;
use wasmer_types::entity::{PrimaryMap, SecondaryMap};
use wasmer_compiler::{
CompileError, CompiledFunctionFrameInfo, CustomSection, CustomSectionProtection,
CustomSections, FunctionAddressMap, FunctionBody, InstructionAddressMap, Relocation,
RelocationKind, RelocationTarget, SectionBody, SectionIndex, SourceLoc,
};
use wasmer_types::entity::{PrimaryMap, SecondaryMap};
use wasmer_vm::libcalls::LibCall;
use wasmer_types::entity::entity_impl;

View File

@ -17,8 +17,8 @@ use inkwell::{
};
use std::cmp;
use std::convert::TryInto;
use wasmer_types::{FunctionType, LocalFunctionIndex};
use wasmer_compiler::{CompileError, FunctionBody, RelocationTarget};
use wasmer_types::{FunctionType, LocalFunctionIndex};
pub struct FuncTrampoline {
ctx: Context,

View File

@ -22,8 +22,8 @@ use inkwell::{
},
AddressSpace,
};
use wasmer_types::{FunctionType as FuncSig, Type};
use wasmer_compiler::CompileError;
use wasmer_types::{FunctionType as FuncSig, Type};
// Given a function definition, retrieve the parameter that is the vmctx pointer.
pub fn get_vmctx_ptr_param<'ctx>(func_value: &FunctionValue<'ctx>) -> PointerValue<'ctx> {

View File

@ -24,16 +24,16 @@ use smallvec::SmallVec;
use crate::config::{CompiledFunctionKind, LLVM};
use crate::object_file::{load_object_file, CompiledFunction};
use wasmer_types::entity::PrimaryMap;
use wasmer_types::{
FunctionIndex, FunctionType, GlobalIndex, LocalFunctionIndex, MemoryIndex, SignatureIndex,
TableIndex, Type,
};
use wasmer_compiler::wasmparser::{MemoryImmediate, Operator};
use wasmer_compiler::{
to_wasm_error, wptype_to_type, CompileError, FunctionBodyData, GenerateMiddlewareChain,
MiddlewareBinaryReader, ModuleTranslationState, RelocationTarget, Symbol, SymbolRegistry,
};
use wasmer_types::entity::PrimaryMap;
use wasmer_types::{
FunctionIndex, FunctionType, GlobalIndex, LocalFunctionIndex, MemoryIndex, SignatureIndex,
TableIndex, Type,
};
use wasmer_vm::{MemoryStyle, ModuleInfo, TableStyle};
const FUNCTION_SECTION: &str = "__TEXT,wasmer_function";

View File

@ -20,12 +20,12 @@ use inkwell::{
AddressSpace,
};
use std::collections::{hash_map::Entry, HashMap};
use wasmer_compiler::CompileError;
use wasmer_types::entity::{EntityRef, PrimaryMap};
use wasmer_types::{
FunctionIndex, FunctionType as FuncType, GlobalIndex, LocalFunctionIndex, MemoryIndex,
Mutability, SignatureIndex, TableIndex, Type,
};
use wasmer_compiler::CompileError;
use wasmer_vm::ModuleInfo as WasmerCompilerModule;
use wasmer_vm::{MemoryStyle, TrapCode, VMBuiltinFunctionIndex, VMOffsets};