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:
Dan Gohman
2018-04-17 07:55:59 -07:00
parent f552c8768e
commit 7767186dd0
38 changed files with 42 additions and 62 deletions

View File

@@ -8,9 +8,6 @@ license = "Apache-2.0"
readme = "README.md"
keywords = ["webassembly", "wasm"]
[lib]
name = "cton_wasm"
[dependencies]
wasmparser = "0.15.1"
cretonne = { path = "../cretonne", version = "0.4.4" }

View File

@@ -26,7 +26,7 @@ use cretonne::ir::condcodes::{FloatCC, IntCC};
use cretonne::ir::types::*;
use cretonne::ir::{self, InstBuilder, JumpTableData, MemFlags};
use cretonne::packed_option::ReservedValue;
use cton_frontend::{FunctionBuilder, Variable};
use cretonne_frontend::{FunctionBuilder, Variable};
use environ::{FuncEnvironment, GlobalValue};
use state::{ControlStackFrame, TranslationState};
use std::collections::{hash_map, HashMap};

View File

@@ -9,7 +9,7 @@ use cretonne::entity::EntityRef;
use cretonne::ir::{self, Ebb, InstBuilder};
use cretonne::result::{CtonError, CtonResult};
use cretonne::timing;
use cton_frontend::{FunctionBuilder, FunctionBuilderContext, Variable};
use cretonne_frontend::{FunctionBuilder, FunctionBuilderContext, Variable};
use environ::FuncEnvironment;
use state::TranslationState;
use wasmparser::{self, BinaryReader};

View File

@@ -15,7 +15,7 @@
#[macro_use(dbg)]
extern crate cretonne;
extern crate cton_frontend;
extern crate cretonne_frontend;
extern crate wasmparser;
mod code_translator;

View File

@@ -1,11 +1,11 @@
extern crate cretonne;
extern crate cton_wasm;
extern crate cretonne_wasm;
extern crate tempdir;
use cretonne::print_errors::pretty_verifier_error;
use cretonne::settings::{self, Configurable, Flags};
use cretonne::verifier;
use cton_wasm::{translate_module, DummyEnvironment};
use cretonne_wasm::{translate_module, DummyEnvironment};
use std::error::Error;
use std::fs;
use std::fs::File;