about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorNick Cameron <ncameron@mozilla.com>2014-05-06 23:38:01 +1200
committerNick Cameron <ncameron@mozilla.com>2014-05-11 11:08:01 +1200
commit37ca36783c57ad8cce17f3b19fc1016202eb612c (patch)
tree1bac4c2657cceab4ccb8d0c217d2e71854e6d574 /src/rustllvm/RustWrapper.cpp
parent11571cd9c1cde63c3b46ca65e608b84647785ac8 (diff)
downloadrust-37ca36783c57ad8cce17f3b19fc1016202eb612c.tar.gz
rust-37ca36783c57ad8cce17f3b19fc1016202eb612c.zip
Reorganise driver code.
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... fns easier to use by tools.

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