aboutsummaryrefslogtreecommitdiff
path: root/src/comp/driver
diff options
context:
space:
mode:
authorBrian Anderson <[email protected]>2011-05-13 16:47:37 -0400
committerBrian Anderson <[email protected]>2011-05-13 16:55:37 -0400
commit2f440b1452f79a670d2927abd42f95b79272c5d9 (patch)
tree2f5fd75cd246c649f42437ef26e30caa225e7e73 /src/comp/driver
parentSlight adjustments to shape, rename to type_glue.rs. (diff)
downloadrust-2f440b1452f79a670d2927abd42f95b79272c5d9.tar.xz
rust-2f440b1452f79a670d2927abd42f95b79272c5d9.zip
rustc: lowercase the link and link::write modules
Diffstat (limited to 'src/comp/driver')
-rw-r--r--src/comp/driver/rustc.rs24
-rw-r--r--src/comp/driver/session.rs2
2 files changed, 13 insertions, 13 deletions
diff --git a/src/comp/driver/rustc.rs b/src/comp/driver/rustc.rs
index 4940e7a0..6effc44f 100644
--- a/src/comp/driver/rustc.rs
+++ b/src/comp/driver/rustc.rs
@@ -10,7 +10,7 @@ import middle::resolve;
import middle::ty;
import middle::typeck;
import middle::typestate_check;
-import back::Link;
+import back::link;
import lib::llvm;
import util::common;
@@ -29,7 +29,7 @@ import std::getopts::optmulti;
import std::getopts::optflag;
import std::getopts::opt_present;
-import back::Link::output_type;
+import back::link::output_type;
fn default_environment(session::session sess,
str argv0,
@@ -87,7 +87,7 @@ fn compile_input(session::session sess,
auto p = parser::new_parser(sess, env, def, input, 0u, 0u);
auto crate = time(time_passes, "parsing",
bind parse_input(sess, p, input));
- if (sess.get_opts().output_type == Link::output_type_none) {ret;}
+ if (sess.get_opts().output_type == link::output_type_none) {ret;}
crate = time(time_passes, "external crate reading",
bind creader::read_crates(sess, crate));
@@ -112,7 +112,7 @@ fn compile_input(session::session sess,
type_cache, output));
time[()](time_passes, "LLVM passes",
- bind Link::Write::run_passes(sess, llmod, output));
+ bind link::write::run_passes(sess, llmod, output));
}
fn pretty_print_input(session::session sess,
@@ -241,13 +241,13 @@ fn main(vec[str] args) {
auto output_file = getopts::opt_maybe_str(match, "o");
auto library_search_paths = getopts::opt_strs(match, "L");
- auto output_type = Link::output_type_bitcode;
+ auto output_type = link::output_type_bitcode;
if (opt_present(match, "parse-only")) {
- output_type = Link::output_type_none;
+ output_type = link::output_type_none;
} else if (opt_present(match, "S")) {
- output_type = Link::output_type_assembly;
+ output_type = link::output_type_assembly;
} else if (opt_present(match, "c")) {
- output_type = Link::output_type_object;
+ output_type = link::output_type_object;
}
auto verify = !opt_present(match, "noverify");
@@ -317,10 +317,10 @@ fn main(vec[str] args) {
let vec[str] parts = _str::split(ifile, '.' as u8);
_vec::pop[str](parts);
alt (output_type) {
- case (Link::output_type_none) { parts += vec("pp"); }
- case (Link::output_type_bitcode) { parts += vec("bc"); }
- case (Link::output_type_assembly) { parts += vec("s"); }
- case (Link::output_type_object) { parts += vec("o"); }
+ case (link::output_type_none) { parts += vec("pp"); }
+ case (link::output_type_bitcode) { parts += vec("bc"); }
+ case (link::output_type_assembly) { parts += vec("s"); }
+ case (link::output_type_object) { parts += vec("o"); }
}
auto ofile = _str::connect(parts, ".");
compile_input(sess, env, ifile, ofile);
diff --git a/src/comp/driver/session.rs b/src/comp/driver/session.rs
index 12129a93..71d4d9d2 100644
--- a/src/comp/driver/session.rs
+++ b/src/comp/driver/session.rs
@@ -34,7 +34,7 @@ type options = rec(bool shared,
bool stats,
bool time_passes,
bool time_llvm_passes,
- back::Link::output_type output_type,
+ back::link::output_type output_type,
vec[str] library_search_paths,
str sysroot);