Rename 'cton_*' library names to match the 'cretonne_*' crate names.
This renames `cton_frontend` to `cretonne_frontend` and so on. This fixes the first part of #287.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
//! normalizing formatting and removing comments.
|
||||
|
||||
use CommandResult;
|
||||
use cton_reader::parse_functions;
|
||||
use cretonne_reader::parse_functions;
|
||||
use utils::read_to_string;
|
||||
|
||||
pub fn run(files: &[String]) -> CommandResult {
|
||||
|
||||
@@ -4,7 +4,7 @@ use cretonne::Context;
|
||||
use cretonne::print_errors::pretty_error;
|
||||
use cretonne::settings::FlagsOrIsa;
|
||||
use cretonne::{binemit, ir};
|
||||
use cton_reader::parse_test;
|
||||
use cretonne_reader::parse_test;
|
||||
use std::path::Path;
|
||||
use std::path::PathBuf;
|
||||
use utils::{parse_sets_and_isa, read_to_string};
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
extern crate cretonne;
|
||||
extern crate cton_filetests;
|
||||
extern crate cton_reader;
|
||||
extern crate cton_wasm;
|
||||
extern crate cretonne_filetests;
|
||||
extern crate cretonne_reader;
|
||||
extern crate cretonne_wasm;
|
||||
extern crate docopt;
|
||||
extern crate filecheck;
|
||||
#[macro_use]
|
||||
@@ -86,7 +86,7 @@ fn cton_util() -> CommandResult {
|
||||
|
||||
// Find the sub-command to execute.
|
||||
let result = if args.cmd_test {
|
||||
cton_filetests::run(args.flag_verbose, &args.arg_file).map(|_time| ())
|
||||
cretonne_filetests::run(args.flag_verbose, &args.arg_file).map(|_time| ())
|
||||
} else if args.cmd_cat {
|
||||
cat::run(&args.arg_file)
|
||||
} else if args.cmd_filecheck {
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
use CommandResult;
|
||||
use cretonne::cfg_printer::CFGPrinter;
|
||||
use cton_reader::parse_functions;
|
||||
use cretonne_reader::parse_functions;
|
||||
use utils::read_to_string;
|
||||
|
||||
pub fn run(files: &[String]) -> CommandResult {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
use cretonne::isa;
|
||||
use cretonne::isa::TargetIsa;
|
||||
use cretonne::settings::{self, FlagsOrIsa};
|
||||
use cton_reader::{parse_options, Location};
|
||||
use cretonne_reader::{parse_options, Location};
|
||||
use std::fs::File;
|
||||
use std::io::{self, Read};
|
||||
use std::path::Path;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//! CLI tool to use the functions provided by the [cretonne-wasm](../cton_wasm/index.html) crate.
|
||||
//! CLI tool to use the functions provided by the [cretonne-wasm](../cretonne_wasm/index.html)
|
||||
//! crate.
|
||||
//!
|
||||
//! Reads Wasm binary files, translates the functions' code to Cretonne IR.
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(too_many_arguments, cyclomatic_complexity))]
|
||||
@@ -6,7 +7,7 @@
|
||||
use cretonne::Context;
|
||||
use cretonne::print_errors::{pretty_error, pretty_verifier_error};
|
||||
use cretonne::settings::FlagsOrIsa;
|
||||
use cton_wasm::{translate_module, DummyEnvironment, ModuleEnvironment};
|
||||
use cretonne_wasm::{translate_module, DummyEnvironment, ModuleEnvironment};
|
||||
use std::error::Error;
|
||||
use std::fs::File;
|
||||
use std::io;
|
||||
|
||||
Reference in New Issue
Block a user