rustc: Move astencode from metadata to middle

This commit is contained in:
Brian Anderson 2012-05-14 16:15:11 -07:00
parent e12b16cde7
commit 32c4b6da5b
5 changed files with 18 additions and 3 deletions

View File

@ -32,6 +32,8 @@ mod middle {
export borrowck;
import alias = middle_::alias;
export alias;
import astencode = middle_::astencode;
export astencode;
}
mod front {

View File

@ -15,6 +15,7 @@ import syntax::print::pprust;
import cmd=cstore::crate_metadata;
import util::ppaux::ty_to_str;
import ebml::deserializer;
import middle::astencode;
export get_class_fields;
export get_symbol;

View File

@ -20,6 +20,7 @@ import std::ebml::serializer;
import middle::resolve;
import syntax::ast;
import driver::session::session;
import middle::astencode;
export encode_parms;
export encode_metadata;

View File

@ -27,8 +27,15 @@ import driver::session::session;
import middle::freevars::{freevar_entry,
serialize_freevar_entry,
deserialize_freevar_entry};
import c = common;
import e = encoder;
import c = metadata::common;
import e = metadata::encoder;
import cstore = metadata::cstore;
import metadata::maps;
import metadata::encoder;
import metadata::decoder;
import metadata::tyencode;
import metadata::tydecode;
// used in testing:
import syntax::diagnostic;

View File

@ -69,6 +69,7 @@ mod middle {
mod region;
mod regionck;
mod const_eval;
mod astencode;
mod tstate {
mod ck;
@ -106,11 +107,14 @@ mod metadata {
export creader;
export cstore;
export csearch;
export common;
export decoder;
export tyencode;
export tydecode;
mod common;
mod tyencode;
mod tydecode;
mod astencode;
mod encoder;
mod decoder;
mod creader;