rustc: Move filesearch into metadata mod
It's not that related to metadata, but metadata needs it and it will probably be useful for doing dynamic loading.
This commit is contained in:
parent
3f3c9caf4d
commit
736ff34e8a
@ -2,8 +2,8 @@
|
||||
|
||||
import syntax::{ast, codemap};
|
||||
import syntax::parse;
|
||||
import rustc::util::filesearch::{get_cargo_root, get_cargo_root_nearest,
|
||||
get_cargo_sysroot, libdir};
|
||||
import rustc::metadata::filesearch::{get_cargo_root, get_cargo_root_nearest,
|
||||
get_cargo_sysroot, libdir};
|
||||
import syntax::diagnostic;
|
||||
|
||||
import result::{ok, err};
|
||||
|
@ -13,7 +13,7 @@ import syntax::ast;
|
||||
import syntax::print::pprust;
|
||||
import lib::llvm::{ModuleRef, mk_pass_manager, mk_target_data, True, False,
|
||||
FileType};
|
||||
import util::filesearch;
|
||||
import metadata::filesearch;
|
||||
import syntax::ast_map::{path, path_mod, path_name};
|
||||
|
||||
enum output_type {
|
||||
|
@ -2,7 +2,7 @@ import std::map;
|
||||
import std::map::hashmap;
|
||||
import metadata::cstore;
|
||||
import driver::session;
|
||||
import util::filesearch;
|
||||
import metadata::filesearch;
|
||||
|
||||
export get_rpath_flags;
|
||||
|
||||
|
@ -1,12 +1,12 @@
|
||||
// -*- rust -*-
|
||||
import metadata::{creader, cstore};
|
||||
import metadata::{creader, cstore, filesearch};
|
||||
import session::session;
|
||||
import syntax::parse;
|
||||
import syntax::{ast, codemap};
|
||||
import syntax::attr;
|
||||
import middle::{trans, resolve, freevars, kind, ty, typeck, lint};
|
||||
import syntax::print::{pp, pprust};
|
||||
import util::{ppaux, filesearch};
|
||||
import util::ppaux;
|
||||
import back::link;
|
||||
import result::{ok, err};
|
||||
import std::getopts;
|
||||
|
@ -4,7 +4,7 @@ import syntax::ast::node_id;
|
||||
import codemap::span;
|
||||
import syntax::ast::{int_ty, uint_ty, float_ty};
|
||||
import syntax::parse::parse_sess;
|
||||
import util::filesearch;
|
||||
import metadata::filesearch;
|
||||
import back::target_strs;
|
||||
import back::link;
|
||||
import middle::lint;
|
||||
|
@ -19,8 +19,6 @@ mod driver {
|
||||
mod util {
|
||||
import ppaux = util_::ppaux;
|
||||
export ppaux;
|
||||
import filesearch = util_::filesearch;
|
||||
export filesearch;
|
||||
}
|
||||
|
||||
mod lib {
|
||||
|
@ -11,7 +11,7 @@ import syntax::visit;
|
||||
import syntax::codemap::span;
|
||||
import std::map::{hashmap, int_hash};
|
||||
import syntax::print::pprust;
|
||||
import util::filesearch::filesearch;
|
||||
import filesearch::filesearch;
|
||||
import common::*;
|
||||
|
||||
export read_crates;
|
||||
|
@ -9,7 +9,6 @@ import syntax::{ast, attr};
|
||||
import syntax::print::pprust;
|
||||
import syntax::codemap::span;
|
||||
import lib::llvm::{False, llvm, mk_object_file, mk_section_iter};
|
||||
import util::filesearch;
|
||||
import filesearch::filesearch;
|
||||
import io::writer_util;
|
||||
|
||||
|
@ -122,6 +122,7 @@ mod metadata {
|
||||
export tyencode;
|
||||
export tydecode;
|
||||
export loader;
|
||||
export filesearch;
|
||||
|
||||
mod common;
|
||||
mod tyencode;
|
||||
@ -132,6 +133,7 @@ mod metadata {
|
||||
mod cstore;
|
||||
mod csearch;
|
||||
mod loader;
|
||||
mod filesearch;
|
||||
}
|
||||
|
||||
mod driver {
|
||||
@ -142,7 +144,6 @@ mod driver {
|
||||
mod util {
|
||||
mod common;
|
||||
mod ppaux;
|
||||
mod filesearch;
|
||||
}
|
||||
|
||||
mod lib {
|
||||
|
@ -17,7 +17,7 @@ import syntax::ast;
|
||||
import syntax::codemap;
|
||||
import syntax::ast_map;
|
||||
import rustc::back::link;
|
||||
import rustc::util::filesearch;
|
||||
import rustc::metadata::filesearch;
|
||||
import rustc::front;
|
||||
import rustc::middle::resolve;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user