Skip to content

Commit ccd6c61

Browse files
committed
Fix a comment.
I'm pretty sure `CodegenCx` applies to codegen units, rather than compilation units.
1 parent badd8cc commit ccd6c61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_codegen_llvm/src/context.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ use crate::type_::Type;
3535
use crate::value::Value;
3636
use crate::{attributes, coverageinfo, debuginfo, llvm, llvm_util};
3737

38-
/// There is one `CodegenCx` per compilation unit. Each one has its own LLVM
39-
/// `llvm::Context` so that several compilation units may be optimized in parallel.
38+
/// There is one `CodegenCx` per codegen unit. Each one has its own LLVM
39+
/// `llvm::Context` so that several codegen units may be processed in parallel.
4040
/// All other LLVM data structures in the `CodegenCx` are tied to that `llvm::Context`.
4141
pub(crate) struct CodegenCx<'ll, 'tcx> {
4242
pub tcx: TyCtxt<'tcx>,

0 commit comments

Comments
 (0)