@@ -4,7 +4,7 @@ use gccjit::{Location, RValue};
4
4
use rustc_codegen_ssa:: mir:: debuginfo:: { DebugScope , FunctionDebugContext , VariableKind } ;
5
5
use rustc_codegen_ssa:: traits:: { DebugInfoBuilderMethods , DebugInfoCodegenMethods } ;
6
6
use rustc_data_structures:: sync:: Lrc ;
7
- use rustc_index:: bit_set:: BitSet ;
7
+ use rustc_index:: bit_set:: DenseBitSet ;
8
8
use rustc_index:: { Idx , IndexVec } ;
9
9
use rustc_middle:: mir:: { self , Body , SourceScope } ;
10
10
use rustc_middle:: ty:: { Instance , PolyExistentialTraitRef , Ty } ;
@@ -69,7 +69,7 @@ fn compute_mir_scopes<'gcc, 'tcx>(
69
69
) {
70
70
// Find all scopes with variables defined in them.
71
71
let variables = if cx. sess ( ) . opts . debuginfo == DebugInfo :: Full {
72
- let mut vars = BitSet :: new_empty ( mir. source_scopes . len ( ) ) ;
72
+ let mut vars = DenseBitSet :: new_empty ( mir. source_scopes . len ( ) ) ;
73
73
// FIXME(eddyb) take into account that arguments always have debuginfo,
74
74
// irrespective of their name (assuming full debuginfo is enabled).
75
75
// NOTE(eddyb) actually, on second thought, those are always in the
@@ -82,7 +82,7 @@ fn compute_mir_scopes<'gcc, 'tcx>(
82
82
// Nothing to emit, of course.
83
83
None
84
84
} ;
85
- let mut instantiated = BitSet :: new_empty ( mir. source_scopes . len ( ) ) ;
85
+ let mut instantiated = DenseBitSet :: new_empty ( mir. source_scopes . len ( ) ) ;
86
86
// Instantiate all scopes.
87
87
for idx in 0 ..mir. source_scopes . len ( ) {
88
88
let scope = SourceScope :: new ( idx) ;
@@ -101,9 +101,9 @@ fn make_mir_scope<'gcc, 'tcx>(
101
101
cx : & CodegenCx < ' gcc , ' tcx > ,
102
102
_instance : Instance < ' tcx > ,
103
103
mir : & Body < ' tcx > ,
104
- variables : & Option < BitSet < SourceScope > > ,
104
+ variables : & Option < DenseBitSet < SourceScope > > ,
105
105
debug_context : & mut FunctionDebugContext < ' tcx , ( ) , Location < ' gcc > > ,
106
- instantiated : & mut BitSet < SourceScope > ,
106
+ instantiated : & mut DenseBitSet < SourceScope > ,
107
107
scope : SourceScope ,
108
108
) {
109
109
if instantiated. contains ( scope) {
0 commit comments