about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-06-20 14:05:55 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2023-06-22 09:07:15 +1000
commit3bbf9f0128517815946a0c20efd7d80142dc050d (patch)
tree38f9410ce6c3ecebe4845fc11d09323168dfc3ee /compiler/rustc_codegen_llvm
parenta521ba400dbfb2e9907238a4e7a5650d22bf2068 (diff)
downloadrust-3bbf9f0128517815946a0c20efd7d80142dc050d.tar.gz
rust-3bbf9f0128517815946a0c20efd7d80142dc050d.zip
Introduce `CodegenState`.
The codegen main loop has two bools, `codegen_done` and
`codegen_aborted`. There are only three valid combinations: `(false,
false)`, `(true, false)`, `(true, true)`.

This commit replaces them with a single tri-state enum, which makes
things clearer.
Diffstat (limited to 'compiler/rustc_codegen_llvm')
0 files changed, 0 insertions, 0 deletions