File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -521,7 +521,7 @@ impl<'ll> StaticMethods for CodegenCx<'ll, '_> {
521
521
522
522
// The semantics of #[used] in Rust only require the symbol to make it into the
523
523
// object file. It is explicitly allowed for the linker to strip the symbol if it
524
- // is dead, which means we are allowed use `llvm.compiler.used` instead of
524
+ // is dead, which means we are allowed to use `llvm.compiler.used` instead of
525
525
// `llvm.used` here.
526
526
//
527
527
// Additionally, https://reviews.llvm.org/D97448 in LLVM 13 started emitting unique
@@ -532,7 +532,7 @@ impl<'ll> StaticMethods for CodegenCx<'ll, '_> {
532
532
// That said, we only ever emit these when compiling for ELF targets, unless
533
533
// `#[used(compiler)]` is explicitly requested. This is to avoid similar breakage
534
534
// on other targets, in particular MachO targets have *their* static constructor
535
- // lists broken if `llvm.compiler.used` is emitted rather than llvm.used. However,
535
+ // lists broken if `llvm.compiler.used` is emitted rather than ` llvm.used` . However,
536
536
// that check happens when assigning the `CodegenFnAttrFlags` in `rustc_hir_analysis`,
537
537
// so we don't need to take care of it here.
538
538
self . add_compiler_used_global ( g) ;
Original file line number Diff line number Diff line change @@ -91,7 +91,8 @@ bitflags! {
91
91
/// the MIR `InstrumentCoverage` pass and not added to the coverage map
92
92
/// during codegen.
93
93
const NO_COVERAGE = 1 << 15 ;
94
- /// `#[used(linker)]`: indicates that LLVM nor the linker can eliminate this function.
94
+ /// `#[used(linker)]`:
95
+ /// indicates that neither LLVM nor the linker will eliminate this function.
95
96
const USED_LINKER = 1 << 16 ;
96
97
/// `#[rustc_deallocator]`: a hint to LLVM that the function only deallocates memory.
97
98
const DEALLOCATOR = 1 << 17 ;
You can’t perform that action at this time.
0 commit comments