diff options
| author | bors <bors@rust-lang.org> | 2023-12-14 11:14:03 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-12-14 11:14:03 +0000 |
| commit | 1aa6aefdc92555b3fbc5ae4c99365df9845a3e31 (patch) | |
| tree | 6f484d11a31b271f1e06739754ba4159521da813 /compiler/rustc_codegen_llvm/src/base.rs | |
| parent | 9d49eb76c47a139ef71da4ab56aa9aeca5f24913 (diff) | |
| parent | c0134887d2b4cbac421babcd40710cc9b755f931 (diff) | |
| download | rust-1aa6aefdc92555b3fbc5ae4c99365df9845a3e31.tar.gz rust-1aa6aefdc92555b3fbc5ae4c99365df9845a3e31.zip | |
Auto merge of #118566 - klensy:cstr-new, r=WaffleLapkin
use c literals in compiler and library Relands refreshed https://github.com/rust-lang/rust/pull/111647
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/base.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/base.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler/rustc_codegen_llvm/src/base.rs b/compiler/rustc_codegen_llvm/src/base.rs index b659fd02eec..5dc271ccddb 100644 --- a/compiler/rustc_codegen_llvm/src/base.rs +++ b/compiler/rustc_codegen_llvm/src/base.rs @@ -19,8 +19,6 @@ use crate::context::CodegenCx; use crate::llvm; use crate::value::Value; -use cstr::cstr; - use rustc_codegen_ssa::base::maybe_create_entry_wrapper; use rustc_codegen_ssa::mono_item::MonoItemExt; use rustc_codegen_ssa::traits::*; @@ -110,11 +108,11 @@ pub fn compile_codegen_unit(tcx: TyCtxt<'_>, cgu_name: Symbol) -> (ModuleCodegen // Create the llvm.used and llvm.compiler.used variables. if !cx.used_statics.borrow().is_empty() { - cx.create_used_variable_impl(cstr!("llvm.used"), &*cx.used_statics.borrow()); + cx.create_used_variable_impl(c"llvm.used", &*cx.used_statics.borrow()); } if !cx.compiler_used_statics.borrow().is_empty() { cx.create_used_variable_impl( - cstr!("llvm.compiler.used"), + c"llvm.compiler.used", &*cx.compiler_used_statics.borrow(), ); } |
