提交 352b44d1 编写于 作者: E Eduard Burtescu

Remove unnecessary dependencies on rustc_llvm.

上级 cad964a6
...@@ -94,9 +94,9 @@ DEPS_syntax_ext := syntax fmt_macros ...@@ -94,9 +94,9 @@ DEPS_syntax_ext := syntax fmt_macros
DEPS_rustc_const_eval := std syntax DEPS_rustc_const_eval := std syntax
DEPS_rustc := syntax fmt_macros flate arena serialize getopts rbml rustc_front\ DEPS_rustc := syntax fmt_macros flate arena serialize getopts rbml rustc_front\
log graphviz rustc_llvm rustc_back rustc_data_structures\ log graphviz rustc_back rustc_data_structures\
rustc_const_eval rustc_const_eval
DEPS_rustc_back := std syntax rustc_llvm rustc_front flate log libc DEPS_rustc_back := std syntax rustc_front flate log libc
DEPS_rustc_borrowck := rustc rustc_front rustc_mir log graphviz syntax DEPS_rustc_borrowck := rustc rustc_front rustc_mir log graphviz syntax
DEPS_rustc_data_structures := std log serialize DEPS_rustc_data_structures := std log serialize
DEPS_rustc_driver := arena flate getopts graphviz libc rustc rustc_back rustc_borrowck \ DEPS_rustc_driver := arena flate getopts graphviz libc rustc rustc_back rustc_borrowck \
......
...@@ -21,6 +21,5 @@ rustc_bitflags = { path = "../librustc_bitflags" } ...@@ -21,6 +21,5 @@ rustc_bitflags = { path = "../librustc_bitflags" }
rustc_const_eval = { path = "../librustc_const_eval" } rustc_const_eval = { path = "../librustc_const_eval" }
rustc_data_structures = { path = "../librustc_data_structures" } rustc_data_structures = { path = "../librustc_data_structures" }
rustc_front = { path = "../librustc_front" } rustc_front = { path = "../librustc_front" }
rustc_llvm = { path = "../librustc_llvm" }
serialize = { path = "../libserialize" } serialize = { path = "../libserialize" }
syntax = { path = "../libsyntax" } syntax = { path = "../libsyntax" }
...@@ -50,7 +50,6 @@ ...@@ -50,7 +50,6 @@
extern crate graphviz; extern crate graphviz;
extern crate libc; extern crate libc;
extern crate rbml; extern crate rbml;
pub extern crate rustc_llvm as llvm;
extern crate rustc_back; extern crate rustc_back;
extern crate rustc_front; extern crate rustc_front;
extern crate rustc_data_structures; extern crate rustc_data_structures;
...@@ -140,10 +139,6 @@ pub mod util { ...@@ -140,10 +139,6 @@ pub mod util {
pub mod fs; pub mod fs;
} }
pub mod lib {
pub use llvm;
}
// A private module so that macro-expanded idents like // A private module so that macro-expanded idents like
// `::rustc::lint::Lint` will also work in `rustc` itself. // `::rustc::lint::Lint` will also work in `rustc` itself.
// //
......
...@@ -38,8 +38,6 @@ ...@@ -38,8 +38,6 @@
use std::fmt; use std::fmt;
use std::path::PathBuf; use std::path::PathBuf;
use llvm;
pub struct Config { pub struct Config {
pub target: Target, pub target: Target,
pub int_type: IntTy, pub int_type: IntTy,
...@@ -1052,10 +1050,6 @@ pub fn build_session_options(matches: &getopts::Matches) -> Options { ...@@ -1052,10 +1050,6 @@ pub fn build_session_options(matches: &getopts::Matches) -> Options {
let dump_dep_graph = debugging_opts.dump_dep_graph; let dump_dep_graph = debugging_opts.dump_dep_graph;
let no_analysis = debugging_opts.no_analysis; let no_analysis = debugging_opts.no_analysis;
if debugging_opts.debug_llvm {
unsafe { llvm::LLVMSetDebug(1); }
}
let mut output_types = HashMap::new(); let mut output_types = HashMap::new();
if !debugging_opts.parse_only && !no_trans { if !debugging_opts.parse_only && !no_trans {
for list in matches.opt_strs("emit") { for list in matches.opt_strs("emit") {
......
...@@ -11,7 +11,6 @@ crate-type = ["dylib"] ...@@ -11,7 +11,6 @@ crate-type = ["dylib"]
[dependencies] [dependencies]
syntax = { path = "../libsyntax" } syntax = { path = "../libsyntax" }
serialize = { path = "../libserialize" } serialize = { path = "../libserialize" }
rustc_llvm = { path = "../librustc_llvm" }
rustc_front = { path = "../librustc_front" } rustc_front = { path = "../librustc_front" }
log = { path = "../liblog" } log = { path = "../liblog" }
......
...@@ -45,7 +45,6 @@ ...@@ -45,7 +45,6 @@
extern crate syntax; extern crate syntax;
extern crate libc; extern crate libc;
extern crate serialize; extern crate serialize;
extern crate rustc_llvm;
extern crate rustc_front; extern crate rustc_front;
#[macro_use] extern crate log; #[macro_use] extern crate log;
......
...@@ -166,6 +166,10 @@ pub fn run_compiler<'a>(args: &[String], ...@@ -166,6 +166,10 @@ pub fn run_compiler<'a>(args: &[String],
let sopts = config::build_session_options(&matches); let sopts = config::build_session_options(&matches);
if sopts.debugging_opts.debug_llvm {
unsafe { llvm::LLVMSetDebug(1); }
}
let descriptions = diagnostics_registry(); let descriptions = diagnostics_registry();
do_or_return!(callbacks.early_callback(&matches, do_or_return!(callbacks.early_callback(&matches,
......
...@@ -9,5 +9,4 @@ path = "lib.rs" ...@@ -9,5 +9,4 @@ path = "lib.rs"
crate-type = ["dylib"] crate-type = ["dylib"]
[dependencies] [dependencies]
rustc_llvm = { path = "../librustc_llvm" }
rustc = { path = "../librustc" } rustc = { path = "../librustc" }
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
#![cfg_attr(not(stage0), deny(warnings))] #![cfg_attr(not(stage0), deny(warnings))]
#![allow(bad_style)] #![allow(bad_style)]
extern crate rustc_llvm as llvm;
extern crate rustc; extern crate rustc;
use rustc::ty::TyCtxt; use rustc::ty::TyCtxt;
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
extern crate rustc_driver; extern crate rustc_driver;
extern crate rustc_front; extern crate rustc_front;
extern crate rustc_lint; extern crate rustc_lint;
extern crate rustc_llvm as llvm;
extern crate rustc_metadata; extern crate rustc_metadata;
extern crate rustc_resolve; extern crate rustc_resolve;
#[macro_use] extern crate syntax; #[macro_use] extern crate syntax;
...@@ -28,7 +29,6 @@ ...@@ -28,7 +29,6 @@
use rustc::dep_graph::DepGraph; use rustc::dep_graph::DepGraph;
use rustc::front::map as ast_map; use rustc::front::map as ast_map;
use rustc::llvm;
use rustc::middle::cstore::{CrateStore, LinkagePreference}; use rustc::middle::cstore::{CrateStore, LinkagePreference};
use rustc::ty; use rustc::ty;
use rustc::session::config::{self, basic_options, build_configuration, Input, Options}; use rustc::session::config::{self, basic_options, build_configuration, Input, Options};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册