Skip to content

Commit beda104

Browse files
committed
Disable local debuginfo for now
1 parent 74ca55d commit beda104

File tree

1 file changed

+20
-17
lines changed

1 file changed

+20
-17
lines changed

src/debuginfo/mod.rs

+20-17
Original file line numberDiff line numberDiff line change
@@ -270,24 +270,27 @@ impl<'a, 'tcx> FunctionDebugContext<'a, 'tcx> {
270270
length: end as u64,
271271
});
272272

273-
let value_labels_ranges = context.build_value_labels_ranges(isa).unwrap();
274-
275-
for (local, _local_decl) in self.mir.local_decls.iter_enumerated() {
276-
let var_id = self.define_local(format!("{:?}", local), &self.mir.local_decls[local].ty);
277-
278-
let location = place_location(
279-
self,
280-
context,
281-
&local_map,
282-
&value_labels_ranges,
283-
Place {
284-
base: PlaceBase::Local(local),
285-
projection: ty::List::empty(),
286-
},
287-
);
273+
// FIXME make it more reliable and implement scopes before re-enabling this.
274+
if false {
275+
let value_labels_ranges = context.build_value_labels_ranges(isa).unwrap();
276+
277+
for (local, _local_decl) in self.mir.local_decls.iter_enumerated() {
278+
let var_id = self.define_local(format!("{:?}", local), &self.mir.local_decls[local].ty);
279+
280+
let location = place_location(
281+
self,
282+
context,
283+
&local_map,
284+
&value_labels_ranges,
285+
Place {
286+
base: PlaceBase::Local(local),
287+
projection: ty::List::empty(),
288+
},
289+
);
288290

289-
let var_entry = self.debug_context.dwarf.unit.get_mut(var_id);
290-
var_entry.set(gimli::DW_AT_location, location);
291+
let var_entry = self.debug_context.dwarf.unit.get_mut(var_id);
292+
var_entry.set(gimli::DW_AT_location, location);
293+
}
291294
}
292295

293296
// FIXME create locals for all entries in mir.var_debug_info

0 commit comments

Comments
 (0)