diff options
| author | Xidorn Quan <me@upsuper.org> | 2021-02-13 22:17:15 +1100 |
|---|---|---|
| committer | Xidorn Quan <me@upsuper.org> | 2021-02-14 09:45:35 +1100 |
| commit | 38e4233a3291b0b8e3148e7ea47da66c9d8b307f (patch) | |
| tree | fa636e19baada1caea2620c78fdc70a638b08d96 /compiler/rustc_codegen_llvm/src/debuginfo | |
| parent | 21cbbdc44de84e3ea99bca239091e5d1c49af654 (diff) | |
| download | rust-38e4233a3291b0b8e3148e7ea47da66c9d8b307f.tar.gz rust-38e4233a3291b0b8e3148e7ea47da66c9d8b307f.zip | |
Replace const_cstr with cstr crate
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/debuginfo')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs b/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs index 6e7c0b3e347..4c332a81a1c 100644 --- a/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs +++ b/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs @@ -18,8 +18,8 @@ use crate::llvm::debuginfo::{ }; use crate::value::Value; +use cstr::cstr; use rustc_codegen_ssa::traits::*; -use rustc_data_structures::const_cstr; use rustc_data_structures::fingerprint::Fingerprint; use rustc_data_structures::fx::FxHashMap; use rustc_data_structures::stable_hasher::{HashStable, StableHasher}; @@ -1072,7 +1072,7 @@ pub fn compile_unit_metadata( gcov_cu_info.len() as c_uint, ); - let llvm_gcov_ident = const_cstr!("llvm.gcov"); + let llvm_gcov_ident = cstr!("llvm.gcov"); llvm::LLVMAddNamedMetadataOperand( debug_context.llmod, llvm_gcov_ident.as_ptr(), @@ -1090,7 +1090,7 @@ pub fn compile_unit_metadata( ); llvm::LLVMAddNamedMetadataOperand( debug_context.llmod, - const_cstr!("llvm.ident").as_ptr(), + cstr!("llvm.ident").as_ptr(), llvm::LLVMMDNodeInContext(debug_context.llcontext, &name_metadata, 1), ); } |
