diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2018-07-30 08:58:14 -0600 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2018-08-01 06:50:40 -0600 |
| commit | 9bc4fbb10a1517c2ac5a4c9b0ae3ac6559c90a0d (patch) | |
| tree | 60a31a751d69a5f8b87177f77d2cd1b261f63299 /src/librustc_codegen_llvm/debuginfo | |
| parent | 1d64b241cdca1477cc4c87b3751326212ebf78f6 (diff) | |
Split out growth functionality into BitVector type
Diffstat (limited to 'src/librustc_codegen_llvm/debuginfo')
| -rw-r--r-- | src/librustc_codegen_llvm/debuginfo/create_scope_map.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_codegen_llvm/debuginfo/create_scope_map.rs b/src/librustc_codegen_llvm/debuginfo/create_scope_map.rs index 5273032f2d7..a76f1d50fa7 100644 --- a/src/librustc_codegen_llvm/debuginfo/create_scope_map.rs +++ b/src/librustc_codegen_llvm/debuginfo/create_scope_map.rs @@ -21,7 +21,7 @@ use libc::c_uint; use syntax_pos::Pos; -use rustc_data_structures::bitvec::BitVector; +use rustc_data_structures::bitvec::BitArray; use rustc_data_structures::indexed_vec::{Idx, IndexVec}; use syntax_pos::BytePos; @@ -64,7 +64,7 @@ pub fn create_mir_scopes( }; // Find all the scopes with variables defined in them. - let mut has_variables = BitVector::new(mir.source_scopes.len()); + let mut has_variables = BitArray::new(mir.source_scopes.len()); for var in mir.vars_iter() { let decl = &mir.local_decls[var]; has_variables.insert(decl.visibility_scope); @@ -81,7 +81,7 @@ pub fn create_mir_scopes( fn make_mir_scope(cx: &CodegenCx<'ll, '_>, mir: &Mir, - has_variables: &BitVector<SourceScope>, + has_variables: &BitArray<SourceScope>, debug_context: &FunctionDebugContextData<'ll>, scope: SourceScope, scopes: &mut IndexVec<SourceScope, MirDebugScope<'ll>>) { |
