diff options
| author | bors <bors@rust-lang.org> | 2022-07-08 10:03:27 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-07-08 10:03:27 +0000 |
| commit | 1dcff2d5077244f49687ea25070958f23bd9edc6 (patch) | |
| tree | 3f03f613e810dc16f54fc1e807f1f1dbfd98d215 /compiler/rustc_codegen_llvm/src/context.rs | |
| parent | 0f97e02bdc7a53176aa96a53ff8b533947d7649c (diff) | |
| parent | f688f4d1e4753ca0a83a1413a7b98fb8727c04a2 (diff) | |
| download | rust-1dcff2d5077244f49687ea25070958f23bd9edc6.tar.gz rust-1dcff2d5077244f49687ea25070958f23bd9edc6.zip | |
Auto merge of #98638 - bjorn3:less_string_interning, r=tmiasko
Use less string interning This removes string interning in a couple of places where doing so won't result in perf improvements. I also switched one place to use pre-interned symbols.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/context.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/context.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/context.rs b/compiler/rustc_codegen_llvm/src/context.rs index c007728095f..55e4a4a7255 100644 --- a/compiler/rustc_codegen_llvm/src/context.rs +++ b/compiler/rustc_codegen_llvm/src/context.rs @@ -26,7 +26,6 @@ use rustc_session::config::{BranchProtection, CFGuard, CFProtection}; use rustc_session::config::{CrateType, DebugInfo, PAuthKey, PacRet}; use rustc_session::Session; use rustc_span::source_map::Span; -use rustc_span::symbol::Symbol; use rustc_target::abi::{ call::FnAbi, HasDataLayout, PointeeInfo, Size, TargetDataLayout, VariantIdx, }; @@ -56,7 +55,7 @@ pub struct CodegenCx<'ll, 'tcx> { pub vtables: RefCell<FxHashMap<(Ty<'tcx>, Option<ty::PolyExistentialTraitRef<'tcx>>), &'ll Value>>, /// Cache of constant strings, - pub const_str_cache: RefCell<FxHashMap<Symbol, &'ll Value>>, + pub const_str_cache: RefCell<FxHashMap<String, &'ll Value>>, /// Reverse-direction for const ptrs cast from globals. /// |
