diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-09-18 12:45:28 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-09-19 20:10:42 +1000 |
| commit | ccd6c6102d6f2c7636a244d5e776283dab93c307 (patch) | |
| tree | 4c04daab101e8f72a04bc40de1c0c527a7f3de96 /compiler/rustc_codegen_llvm/src | |
| parent | badd8cc8f4387410c7037880837abe5ab65e764c (diff) | |
| download | rust-ccd6c6102d6f2c7636a244d5e776283dab93c307.tar.gz rust-ccd6c6102d6f2c7636a244d5e776283dab93c307.zip | |
Fix a comment.
I'm pretty sure `CodegenCx` applies to codegen units, rather than compilation units.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/context.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/context.rs b/compiler/rustc_codegen_llvm/src/context.rs index 03af31d36fb..cb4e06fc454 100644 --- a/compiler/rustc_codegen_llvm/src/context.rs +++ b/compiler/rustc_codegen_llvm/src/context.rs @@ -35,8 +35,8 @@ use crate::type_::Type; use crate::value::Value; use crate::{attributes, coverageinfo, debuginfo, llvm, llvm_util}; -/// There is one `CodegenCx` per compilation unit. Each one has its own LLVM -/// `llvm::Context` so that several compilation units may be optimized in parallel. +/// There is one `CodegenCx` per codegen unit. Each one has its own LLVM +/// `llvm::Context` so that several codegen units may be processed in parallel. /// All other LLVM data structures in the `CodegenCx` are tied to that `llvm::Context`. pub(crate) struct CodegenCx<'ll, 'tcx> { pub tcx: TyCtxt<'tcx>, |
