@@ -73,8 +73,8 @@ and a bunch of other crates with the 'librustc_' prefix.
73
73
74
74
Next is translation, this translates the AST (and all those side tables) into
75
75
LLVM IR (intermediate representation). We do this by calling into the LLVM
76
- libraries, rather than actually writing IR directly to a file. The code for this is in
77
- [ librustc_trans] ( https://github.com/rust-lang/rust/tree/master/src/librustc_trans ) .
76
+ libraries, rather than actually writing IR directly to a file. The code for
77
+ this is in [ librustc_trans] ( https://github.com/rust-lang/rust/tree/master/src/librustc_trans ) .
78
78
79
79
The next phase is running the LLVM backend. This runs LLVM's optimisation passes
80
80
on the generated IR and then generates machine code. The result is object files.
@@ -117,8 +117,8 @@ I'll summarise the methods here.
117
117
` early_callback ` and ` late_callback ` let you call arbitrary code at different
118
118
points - early is after command line arguments have been parsed, but before
119
119
anything is done with them; late is pretty much the last thing before
120
- compilation starts, i.e., after all processing of command line arguments, etc. is
121
- done. Currently, you get to choose whether compilation stops or continues at
120
+ compilation starts, i.e., after all processing of command line arguments, etc.
121
+ is done. Currently, you get to choose whether compilation stops or continues at
122
122
each point, but you don't get to change anything the driver has done. You can
123
123
record some info for later, or perform other actions of your own.
124
124
@@ -402,4 +402,4 @@ analysis, rather than doing its own analysis). Other parts of the compiler
402
402
internally (I already changed save-analysis to use ` CompilerController ` ). I've
403
403
been experimenting with a prototype rustfmt which also uses these APIs.
404
404
405
- [ stupid-stats ] : https://github.com/nrc/stupid-stats
405
+ [ stupid-stats ] : https://github.com/nrc/stupid-stats
0 commit comments