Clean up unused imports.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use cretonne::Context;
|
||||
use cretonne::settings;
|
||||
use cretonne::isa::{self, TargetIsa};
|
||||
use cretonne::isa::TargetIsa;
|
||||
use cretonne::verify_function;
|
||||
use cretonne::verifier;
|
||||
use cretonne::settings::Configurable;
|
||||
@@ -8,7 +8,7 @@ use cretonne::result::CtonError;
|
||||
use cretonne::ir::entities::AnyEntity;
|
||||
use cretonne::ir::{Ebb, FuncRef, JumpTable, Function};
|
||||
use cretonne::binemit::{RelocSink, Reloc, CodeOffset};
|
||||
use cton_wasm::{TranslationResult, FunctionIndex, WasmRuntime};
|
||||
use cton_wasm::{TranslationResult, FunctionIndex};
|
||||
use std::mem::transmute;
|
||||
use region::Protection;
|
||||
use region::protect;
|
||||
@@ -81,7 +81,7 @@ pub fn compile_module(
|
||||
);
|
||||
let mut functions_metatada = Vec::new();
|
||||
let mut functions_code = Vec::new();
|
||||
for (function_index, function) in trans_result.functions.iter().enumerate() {
|
||||
for function in &trans_result.functions {
|
||||
let mut context = Context::new();
|
||||
verify_function(function, isa).unwrap();
|
||||
context.func = function.clone(); // TODO: Avoid this clone.
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
#![deny(missing_docs)]
|
||||
|
||||
extern crate cretonne;
|
||||
extern crate cton_frontend;
|
||||
extern crate cton_wasm;
|
||||
extern crate region;
|
||||
|
||||
|
||||
@@ -1,11 +1,8 @@
|
||||
use cton_wasm::{FunctionIndex, GlobalIndex, TableIndex, MemoryIndex, Global, GlobalInit, Table,
|
||||
Memory, WasmRuntime, FuncEnvironment, GlobalValue, SignatureIndex};
|
||||
use cton_frontend::FunctionBuilder;
|
||||
use cretonne::ir::{MemFlags, Value, InstBuilder, SigRef, FuncRef, ExtFuncData, FunctionName,
|
||||
Signature, ArgumentType, CallConv};
|
||||
use cretonne::ir::{InstBuilder, FuncRef, ExtFuncData, FunctionName, Signature, ArgumentType,
|
||||
CallConv};
|
||||
use cretonne::ir::types::*;
|
||||
use cretonne::ir::condcodes::IntCC;
|
||||
use cretonne::ir::immediates::Offset32;
|
||||
use cretonne::cursor::FuncCursor;
|
||||
use cretonne::packed_option::PackedOption;
|
||||
use cretonne::ir;
|
||||
|
||||
Reference in New Issue
Block a user