aboutsummaryrefslogtreecommitdiff
path: root/src/comp/driver
Commit message (Collapse)AuthorAgeFilesLines
* Start sketching --depend support in rustc.Graydon Hoare2011-05-031-0/+1
|
* rustc: Time the Rust translation and LLVM passes separatelyPatrick Walton2011-05-021-3/+8
|
* rustc: Preserve dots in input path when using an implicit output pathBrian Anderson2011-05-011-2/+2
| | | | This avoids outputing, e.g. /test.bc for ../test.rs
* rustc: Temporarily add a switch and a corresponding makefile variable to ↵Patrick Walton2011-04-291-5/+12
| | | | disable typestate
* rustc: Add a --time-passes optionPatrick Walton2011-04-291-13/+41
|
* rustc: Remove the wrong-compiler warning; we're self-hosting now.Patrick Walton2011-04-291-12/+1
|
* rustc: Only use color if it's supportedPatrick Walton2011-04-281-2/+10
|
* Enable typestate_checkTim Chevalier2011-04-281-2/+1
| | | | This was supposed to be in a previous commit. I don't know what happened.
* Add a session field to ty_ctxt and change an err to span_errTim Chevalier2011-04-281-2/+2
| | | | | | | I changed instantiate to print out a more helpful error message, which required passing it a session argument. To avoid threading extra arguments through a lot of functions, I added a session field to ty_ctxt.
* rustc: Joseph and the Amazing Technicolor Error MessagesPatrick Walton2011-04-281-21/+20
|
* Change rustc to use GetOpts rather than ad-hoc command-line parsingMarijn Haverbeke2011-04-261-124/+78
| | | | | NOTE: all 'long' parameters now use a double dash, so --shared, rather than gcc-style -shared.
* rustc: Add a -save-temps option to save bitcode and write output ↵Patrick Walton2011-04-251-5/+15
| | | | simultaneously; document command line switches
* rustc: Pass a "type context" around instead of directly passing the type ↵Patrick Walton2011-04-251-3/+3
| | | | store; prep for removing type annotations
* rustc: Pass a type store around, which does nothing yetPatrick Walton2011-04-211-3/+6
|
* rustc: Add a -noverify optionPatrick Walton2011-04-191-5/+11
|
* Remove effect system from src.Graydon Hoare2011-04-191-4/+4
|
* replace error logging with log_err in stdlib and rustcMarijn Haverbeke2011-04-192-35/+34
|
* Add a -c option.Rafael Ávila de Espíndola2011-04-181-0/+2
|
* collect crate meta info and ext crate namesMarijn Haverbeke2011-04-182-5/+15
|
* Add a -S option for producing assembly. I will move more of it toRafael Ávila de Espíndola2011-04-151-9/+12
| | | | rust once the necessary APIs are available in C.
* Implement the "attempted dynamic environment-capture" error in rustc.Rafael Ávila de Espíndola2011-04-111-0/+2
|
* Move to single-uint file-position representation.Marijn Haverbeke2011-04-092-13/+30
| | | | | | | | This makes passing them around cheaper. There is now a table (see front/codemap.rs) that is needed to transform such an uint into an actual filename/line/col location. Also cleans up the span building in the parser a bit.
* add a -parse-only option to rustcMarijn Haverbeke2011-04-081-2/+9
| | | | (undocumented, only used for profiling the parser)
* Add a very basic crate-dump utilityMarijn Haverbeke2011-04-071-2/+7
| | | | | 'rustc -ls [cratelib]' will now dump out a list of symbols defined by the crate, as well as a short description of what they are.
* Add a -O option and change the Makefile to use it.Rafael Ávila de Espíndola2011-04-071-5/+11
|
* Re-enable typestate_check in build, was lost during merge. Sorry.Graydon Hoare2011-04-011-1/+1
|
* Comment out import for not-yet-compiling typestate_check.Graydon Hoare2011-04-011-1/+1
|
* Started adding support for typestate checking.Tim Chevalier2011-04-011-2/+3
| | | | | | | | | | | | | | | I added a new field to the ast "ann" type for typestate information. Currently, the field contains a record of a precondition bit vector and postcondition vector, but I tried to structure things so as to make it easy to change the representation of the typestate annotation type. I also had to add annotations to some syntactic forms that didn't have them before (fail, ret, be...), with all the boilerplate changes that that would imply. The main call to the typestate_check entry point is commented out and the actual pre-postcondition algorithm only has a few cases implemented, though the overall AST traversal is there. The rest of the typestate algorithm isn't implemented yet.
* Preserve comments when pretty-printing.Marijn Haverbeke2011-03-311-1/+1
| | | | | The patch also includes a number of smaller fixes to the pretty-printer that were encountered on the way.
* rustc: Thread an item-to-type mapping throughout the typechecking and ↵Patrick Walton2011-03-301-2/+7
| | | | translation phases
* Another go at changing compile-command, this time using RBUILD env var.Graydon Hoare2011-03-252-2/+2
|
* Sketch of wiring typeck up to creader.Graydon Hoare2011-03-252-2/+9
|
* Revert "Bulk-edit compile commands in emacs chatter to point to assumed ↵Graydon Hoare2011-03-252-2/+2
| | | | | | build/ dir off src root." This reverts commit 846f2e2ba994268725f38c36fa12f1a09f21615c.
* Bulk-edit compile commands in emacs chatter to point to assumed build/ dir ↵Graydon Hoare2011-03-252-2/+2
| | | | off src root.
* rustc: Store cached crate metadata in the sessionPatrick Walton2011-03-251-0/+4
|
* rustc: Create a crate metadata cachePatrick Walton2011-03-252-2/+16
|
* rustc: When encountering "mutable" as a tycon, parse it, drop it on the ↵Patrick Walton2011-03-181-0/+8
| | | | floor, and emit a warning
* rustc: Add a span_unimpl() for debuggingPatrick Walton2011-03-181-0/+9
|
* Switch all vases of vec += elt to vec += vec. Prohibit former in rustboot. ↵Graydon Hoare2011-03-161-2/+2
| | | | Tweak std lib vec fns in process.
* rustc: Add an annotation for the crate definition to view_item_usePatrick Walton2011-03-151-1/+1
|
* rustc: Add a stub crate reader module for "use" directivesPatrick Walton2011-03-151-3/+18
|
* rustc: Typo: "unput" -> "input"Patrick Walton2011-03-151-1/+1
|
* Extend stream functionalityMarijn Haverbeke2011-03-141-1/+1
| | | | | | Writer and reader streams now come with methods to write and read little-endian numbers. Whether that is the right place for such methods is debatable, but for now, that's where they live.
* Move the glue code to a .o file. This reduces how much asm we printGraydon Hoare2011-03-101-0/+16
| | | | | | | | | in each "translation unit". Part of it is not repetitive and should probably be moved to a .ll file, but for now we autogen all of it. (Modified somewhat by graydon while integrating).
* Update the current id when we create sub parsers.Rafael Ávila de Espíndola2011-03-101-2/+4
|
* Have the pretty-printer take a writer stream as argumentMarijn Haverbeke2011-03-091-1/+1
| | | | | It now uses a string writer to also fill in for middle.ty.ast_ty_to_str
* Add a pretty-printerMarijn Haverbeke2011-03-071-12/+27
| | | | | Adds a -pp option to the compiler which will cause it to simply pretty-print the given file.
* Remove typestate workaroundsBrian Anderson2011-03-061-2/+0
|
* Flatten conditionals in rustc.rs. Remove FIXMEBrian Anderson2011-03-061-16/+11
|
* Populate default compilation environment as in rustboot.Graydon Hoare2011-03-011-4/+34
|