Fix missing no_std support in cretonne-module.

And, tidy up the extern crate declarations in the std replacement modules.
This commit is contained in:
Dan Gohman
2018-06-07 11:26:09 -07:00
parent 750483b9ac
commit b2b20a95a1
6 changed files with 43 additions and 21 deletions

View File

@@ -9,7 +9,9 @@ use cretonne_codegen::entity::{EntityRef, PrimaryMap};
use cretonne_codegen::result::CtonError;
use cretonne_codegen::{binemit, ir, Context};
use data_context::DataContext;
use std::borrow::ToOwned;
use std::collections::HashMap;
use std::string::String;
use Backend;
/// A function identifier for use in the `Module` interface.