about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-05-11 21:31:48 -0700
committerbors <bors@rust-lang.org>2014-05-11 21:31:48 -0700
commite031ba1028a1705708401a04f5823bcc3e4a439c (patch)
treea83cafad97da333e31c5c59adb58aa5273970e15 /src/rustllvm/RustWrapper.cpp
parent72fc4a5eb72b8ba96dba66400c7eecac93b0b252 (diff)
parent37ca36783c57ad8cce17f3b19fc1016202eb612c (diff)
downloadrust-e031ba1028a1705708401a04f5823bcc3e4a439c.tar.gz
rust-e031ba1028a1705708401a04f5823bcc3e4a439c.zip
auto merge of #14096 : nick29581/rust/driver, r=brson
The goal of this refactoring is to make the rustc driver code easier to understand and use. Since this is as close to an API as we have, I think it is important that it is nice. On getting stuck in, I found that there wasn't as much to change as I'd hoped to make the stage... functions easier to use by tools (which is a good thing :-) ).

This patch only moves code around - mostly just moving code to different files, but a few extracted method refactorings too. To summarise the changes: I added driver::config which handles everything about configuring the compiler. driver::session now just defines and builds session objects. I moved driver code from librustc/lib.rs to librustc/driver/mod.rs so all the code is one place. I extracted methods to make emulating the compiler without being the compiler a little easier. Within the driver directory, I moved code around to more logically fit in the modules.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions