1
Fork 0
rust/compiler/rustc_codegen_ssa
Nicholas Nethercote a08220bcab Tweak structure of the message loop.
The main loop has a *very* complex condition, which includes two
mentions of `codegen_state`. The body of the loop then immediately
switches on the `codegen_state`.

I find it easier to understand if it's a `loop` and we check for exit
conditions after switching on `codegen_state`. We end up with a tiny bit
of code duplication, but it's clear that (a) we never exit in the
`Ongoing` case, (b) we exit in the `Completed` state only if several
things are true (and there's interaction with LTO there), and (c) we
exit in the `Aborted` state if a couple of things are true. Also, the
exit conditions are all simple conjunctions.
2023-07-31 16:21:02 +10:00
..
src Tweak structure of the message loop. 2023-07-31 16:21:02 +10:00
Cargo.toml Don't compress dylib metadata 2023-07-19 14:47:06 +00:00
messages.ftl Add note about writing native-static-libs to file 2023-07-20 11:04:32 -07:00
README.md

Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.