Remove unnecessary dependencies on rustc_llvm.
This commit is contained in:
parent
cad964a626
commit
352b44d1fa
10 changed files with 7 additions and 19 deletions
|
|
@ -21,6 +21,5 @@ rustc_bitflags = { path = "../librustc_bitflags" }
|
|||
rustc_const_eval = { path = "../librustc_const_eval" }
|
||||
rustc_data_structures = { path = "../librustc_data_structures" }
|
||||
rustc_front = { path = "../librustc_front" }
|
||||
rustc_llvm = { path = "../librustc_llvm" }
|
||||
serialize = { path = "../libserialize" }
|
||||
syntax = { path = "../libsyntax" }
|
||||
|
|
|
|||
|
|
@ -50,7 +50,6 @@ extern crate getopts;
|
|||
extern crate graphviz;
|
||||
extern crate libc;
|
||||
extern crate rbml;
|
||||
pub extern crate rustc_llvm as llvm;
|
||||
extern crate rustc_back;
|
||||
extern crate rustc_front;
|
||||
extern crate rustc_data_structures;
|
||||
|
|
@ -140,10 +139,6 @@ pub mod util {
|
|||
pub mod fs;
|
||||
}
|
||||
|
||||
pub mod lib {
|
||||
pub use llvm;
|
||||
}
|
||||
|
||||
// A private module so that macro-expanded idents like
|
||||
// `::rustc::lint::Lint` will also work in `rustc` itself.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -38,8 +38,6 @@ use std::env;
|
|||
use std::fmt;
|
||||
use std::path::PathBuf;
|
||||
|
||||
use llvm;
|
||||
|
||||
pub struct Config {
|
||||
pub target: Target,
|
||||
pub int_type: IntTy,
|
||||
|
|
@ -1052,10 +1050,6 @@ pub fn build_session_options(matches: &getopts::Matches) -> Options {
|
|||
let dump_dep_graph = debugging_opts.dump_dep_graph;
|
||||
let no_analysis = debugging_opts.no_analysis;
|
||||
|
||||
if debugging_opts.debug_llvm {
|
||||
unsafe { llvm::LLVMSetDebug(1); }
|
||||
}
|
||||
|
||||
let mut output_types = HashMap::new();
|
||||
if !debugging_opts.parse_only && !no_trans {
|
||||
for list in matches.opt_strs("emit") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue