diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2019-10-21 17:14:03 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2019-10-21 18:30:40 +1100 |
| commit | 2da7a9c0d943e694eef17c0b47e87cbcde03a957 (patch) | |
| tree | b20db65e98a0cfa39728030c75030670dbfc24f2 /src/librustc_codegen_llvm/lib.rs | |
| parent | dddacf1eb3efb3c2111b27456be43c21e4497ffd (diff) | |
| download | rust-2da7a9c0d943e694eef17c0b47e87cbcde03a957.tar.gz rust-2da7a9c0d943e694eef17c0b47e87cbcde03a957.zip | |
Use `Symbol` for codegen unit names.
This is a straightforward replacement except for two places where we have to convert to `LocalInternedString` to get a stable sort.
Diffstat (limited to 'src/librustc_codegen_llvm/lib.rs')
| -rw-r--r-- | src/librustc_codegen_llvm/lib.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/librustc_codegen_llvm/lib.rs b/src/librustc_codegen_llvm/lib.rs index 9b55bef0c51..8c1797cfb7d 100644 --- a/src/librustc_codegen_llvm/lib.rs +++ b/src/librustc_codegen_llvm/lib.rs @@ -50,7 +50,6 @@ use rustc_codegen_ssa::CompiledModule; use errors::{FatalError, Handler}; use rustc::dep_graph::WorkProduct; use syntax_expand::allocator::AllocatorKind; -use syntax_pos::symbol::InternedString; pub use llvm_util::target_features; use std::any::Any; use std::sync::Arc; @@ -123,7 +122,7 @@ impl ExtraBackendMethods for LlvmCodegenBackend { } fn compile_codegen_unit( &self, tcx: TyCtxt<'_>, - cgu_name: InternedString, + cgu_name: Symbol, tx: &std::sync::mpsc::Sender<Box<dyn Any + Send>>, ) { base::compile_codegen_unit(tcx, cgu_name, tx); |
