Update to Rust 2018 edition (#632)
* initial cargo fix run * Upgrade cranelift-entity crate * Upgrade bforest crate * Upgrade the codegen crate * Upgrade the faerie crate * Upgrade the filetests crate * Upgrade the codegen-meta crate * Upgrade the frontend crate * Upgrade the cranelift-module crate * Upgrade the cranelift-native crate * Upgrade the cranelift-preopt crate * Upgrade the cranelift-reader crate * Upgrade the cranelift-serde crate * Upgrade the cranelift-simplejit crate * Upgrade the cranelift or cranelift-umbrella crate * Upgrade the cranelift-wasm crate * Upgrade cranelift-tools crate * Use new import style on remaining files * run format-all.sh * run test-all.sh, update Readme and travis ci configuration fixed an AssertionError also * Remove deprecated functions
This commit is contained in:
committed by
Dan Gohman
parent
e3db942b0c
commit
effe6c04e4
@@ -3,9 +3,9 @@
|
||||
//! Read a sequence of Cranelift IR files and print them again to stdout. This has the effect of
|
||||
//! normalizing formatting and removing comments.
|
||||
|
||||
use crate::utils::read_to_string;
|
||||
use crate::CommandResult;
|
||||
use cranelift_reader::parse_functions;
|
||||
use utils::read_to_string;
|
||||
use CommandResult;
|
||||
|
||||
pub fn run(files: &[String]) -> CommandResult {
|
||||
for (i, f) in files.into_iter().enumerate() {
|
||||
|
||||
@@ -13,28 +13,13 @@
|
||||
)
|
||||
)]
|
||||
|
||||
extern crate file_per_thread_logger;
|
||||
#[macro_use]
|
||||
extern crate cfg_if;
|
||||
#[cfg(feature = "disas")]
|
||||
extern crate capstone;
|
||||
extern crate clap;
|
||||
extern crate cranelift_codegen;
|
||||
#[cfg(feature = "wasm")]
|
||||
extern crate cranelift_entity;
|
||||
extern crate cranelift_filetests;
|
||||
extern crate cranelift_reader;
|
||||
extern crate pretty_env_logger;
|
||||
use cfg_if::cfg_if;
|
||||
|
||||
cfg_if! {
|
||||
if #[cfg(feature = "wasm")] {
|
||||
extern crate cranelift_wasm;
|
||||
extern crate term;
|
||||
extern crate wabt;
|
||||
mod wasm;
|
||||
}
|
||||
}
|
||||
extern crate target_lexicon;
|
||||
|
||||
use clap::{App, Arg, SubCommand};
|
||||
use cranelift_codegen::dbg::LOG_FILENAME_PREFIX;
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
//! CLI tool to read Cranelift IR files and compile them into native code.
|
||||
|
||||
use crate::utils::{parse_sets_and_triple, read_to_string};
|
||||
use cfg_if::cfg_if;
|
||||
use cranelift_codegen::isa::TargetIsa;
|
||||
use cranelift_codegen::print_errors::pretty_error;
|
||||
use cranelift_codegen::settings::FlagsOrIsa;
|
||||
@@ -9,7 +11,6 @@ use cranelift_codegen::{binemit, ir};
|
||||
use cranelift_reader::parse_test;
|
||||
use std::path::Path;
|
||||
use std::path::PathBuf;
|
||||
use utils::{parse_sets_and_triple, read_to_string};
|
||||
|
||||
struct PrintRelocs {
|
||||
flag_print: bool,
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
//! Read a series of Cranelift IR files and print their control flow graphs
|
||||
//! in graphviz format.
|
||||
|
||||
use crate::utils::read_to_string;
|
||||
use crate::CommandResult;
|
||||
use cranelift_codegen::cfg_printer::CFGPrinter;
|
||||
use cranelift_reader::parse_functions;
|
||||
use utils::read_to_string;
|
||||
use CommandResult;
|
||||
|
||||
pub fn run(files: &[String]) -> CommandResult {
|
||||
for (i, f) in files.into_iter().enumerate() {
|
||||
|
||||
@@ -18,7 +18,7 @@ use cranelift_wasm::{
|
||||
use std::path::Path;
|
||||
use std::path::PathBuf;
|
||||
use term;
|
||||
use utils::{parse_sets_and_triple, read_to_end};
|
||||
use crate::utils::{parse_sets_and_triple, read_to_end};
|
||||
use wabt::wat2wasm;
|
||||
|
||||
macro_rules! vprintln {
|
||||
|
||||
Reference in New Issue
Block a user