Rename the 'cretonne' crate to 'cretonne-codegen'.

This fixes the next part of #287.
This commit is contained in:
Dan Gohman
2018-04-17 08:48:02 -07:00
parent 7767186dd0
commit 24fa169e1f
254 changed files with 265 additions and 264 deletions

View File

@@ -1,9 +1,9 @@
//! CLI tool to read Cretonne IR files and compile them into native code.
use cretonne::Context;
use cretonne::print_errors::pretty_error;
use cretonne::settings::FlagsOrIsa;
use cretonne::{binemit, ir};
use cretonne_codegen::Context;
use cretonne_codegen::print_errors::pretty_error;
use cretonne_codegen::settings::FlagsOrIsa;
use cretonne_codegen::{binemit, ir};
use cretonne_reader::parse_test;
use std::path::Path;
use std::path::PathBuf;

View File

@@ -1,4 +1,4 @@
extern crate cretonne;
extern crate cretonne_codegen;
extern crate cretonne_filetests;
extern crate cretonne_reader;
extern crate cretonne_wasm;
@@ -9,7 +9,7 @@ extern crate serde_derive;
extern crate tempdir;
extern crate term;
use cretonne::{timing, VERSION};
use cretonne_codegen::{timing, VERSION};
use docopt::Docopt;
use std::io::{self, Write};
use std::process;

View File

@@ -4,7 +4,7 @@
//! in graphviz format.
use CommandResult;
use cretonne::cfg_printer::CFGPrinter;
use cretonne_codegen::cfg_printer::CFGPrinter;
use cretonne_reader::parse_functions;
use utils::read_to_string;

View File

@@ -1,8 +1,8 @@
//! Utility functions.
use cretonne::isa;
use cretonne::isa::TargetIsa;
use cretonne::settings::{self, FlagsOrIsa};
use cretonne_codegen::isa;
use cretonne_codegen::isa::TargetIsa;
use cretonne_codegen::settings::{self, FlagsOrIsa};
use cretonne_reader::{parse_options, Location};
use std::fs::File;
use std::io::{self, Read};

View File

@@ -4,9 +4,9 @@
//! Reads Wasm binary files, translates the functions' code to Cretonne IR.
#![cfg_attr(feature = "cargo-clippy", allow(too_many_arguments, cyclomatic_complexity))]
use cretonne::Context;
use cretonne::print_errors::{pretty_error, pretty_verifier_error};
use cretonne::settings::FlagsOrIsa;
use cretonne_codegen::Context;
use cretonne_codegen::print_errors::{pretty_error, pretty_verifier_error};
use cretonne_codegen::settings::FlagsOrIsa;
use cretonne_wasm::{translate_module, DummyEnvironment, ModuleEnvironment};
use std::error::Error;
use std::fs::File;