diff options
| author | Loïc BRANSTETT <lolo.branstett@numericable.fr> | 2022-03-22 11:43:05 +0100 |
|---|---|---|
| committer | Loïc BRANSTETT <lolo.branstett@numericable.fr> | 2022-04-03 21:29:57 +0200 |
| commit | ccff48f97b7a4438b9818f8ff0f60c1cd01cdbeb (patch) | |
| tree | a34d44a1df4bf8bd96e1f807416274343e11aa9b /compiler/rustc_codegen_llvm/src/attributes.rs | |
| parent | 15a242a432c9c40a60def102209a5d40900b7b9d (diff) | |
| download | rust-ccff48f97b7a4438b9818f8ff0f60c1cd01cdbeb.tar.gz rust-ccff48f97b7a4438b9818f8ff0f60c1cd01cdbeb.zip | |
Replace every `String` in Target(Options) with `Cow<'static, str>`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/attributes.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/attributes.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/attributes.rs b/compiler/rustc_codegen_llvm/src/attributes.rs index 101da0012cb..c098ce36f02 100644 --- a/compiler/rustc_codegen_llvm/src/attributes.rs +++ b/compiler/rustc_codegen_llvm/src/attributes.rs @@ -116,7 +116,7 @@ fn instrument_function_attr<'ll>(cx: &CodegenCx<'ll, '_>) -> Option<&'ll Attribu // The function name varies on platforms. // See test/CodeGen/mcount.c in clang. - let mcount_name = cx.sess().target.mcount.as_str(); + let mcount_name = cx.sess().target.mcount.as_ref(); Some(llvm::CreateAttrStringValue( cx.llcx, |
