lib/wasm works with no_std

This commit is contained in:
Lachlan Sneff
2018-01-15 16:21:42 -05:00
committed by Dan Gohman
parent 299e8a9737
commit 66a150e67a
8 changed files with 58 additions and 0 deletions

View File

@@ -34,6 +34,9 @@ use std::collections::{HashMap, hash_map};
use environ::{FuncEnvironment, GlobalValue};
use std::{i32, u32};
// this is for no_std builds, but has no affect on regular builds
use std::vec::Vec;
/// Translates wasm operators into Cretonne IL instructions. Returns `true` if it inserted
/// a return.
pub fn translate_operator<FE: FuncEnvironment + ?Sized>(