@@ -31,7 +31,7 @@ impl<'a, 'gcc, 'tcx> DebugInfoBuilderMethods for Builder<'a, 'gcc, 'tcx> {
31
31
_indirect_offsets : & [ Size ] ,
32
32
_fragment : Option < Range < Size > > ,
33
33
) {
34
- // Not sure if this is correct, probably wrong but still keep it here.
34
+ // FIXME(tempdragon): Not sure if this is correct, probably wrong but still keep it here.
35
35
#[ cfg( feature = "master" ) ]
36
36
variable_alloca. set_location ( dbg_loc) ;
37
37
}
@@ -40,11 +40,10 @@ impl<'a, 'gcc, 'tcx> DebugInfoBuilderMethods for Builder<'a, 'gcc, 'tcx> {
40
40
// TODO(antoyo): insert reference to gdb debug scripts section global.
41
41
}
42
42
43
- /// Currently, this function is not yet implemented. It seems that the
43
+ /// FIXME(tempdragon): Currently, this function is not yet implemented. It seems that the
44
44
/// debug name and the mangled name should both be included in the LValues.
45
45
/// Besides, a function to get the rvalue type(m_is_lvalue) should also be included.
46
46
fn set_var_name ( & mut self , _value : RValue < ' gcc > , _name : & str ) {
47
- //unimplemented!();
48
47
}
49
48
50
49
fn set_dbg_loc ( & mut self , dbg_loc : Self :: DILocation ) {
@@ -213,7 +212,7 @@ impl<'gcc, 'tcx> DebugInfoMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
213
212
_scope_metadata : Self :: DIScope ,
214
213
_file : & SourceFile ,
215
214
) -> Self :: DIScope {
216
- //unimplemented!();
215
+ // TODO(antoyo): implement.
217
216
}
218
217
219
218
fn debuginfo_finalize ( & self ) {
@@ -238,7 +237,7 @@ impl<'gcc, 'tcx> DebugInfoMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
238
237
_fn_abi : & FnAbi < ' tcx , Ty < ' tcx > > ,
239
238
_maybe_definition_llfn : Option < RValue < ' gcc > > ,
240
239
) -> Self :: DIScope {
241
- //unimplemented!();
240
+ // TODO(antoyo): implement.
242
241
}
243
242
244
243
fn dbg_loc (
@@ -247,7 +246,6 @@ impl<'gcc, 'tcx> DebugInfoMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
247
246
_inlined_at : Option < Self :: DILocation > ,
248
247
span : Span ,
249
248
) -> Self :: DILocation {
250
- //unimplemented!();
251
249
let pos = span. lo ( ) ;
252
250
let ( file, line, col) = self . lookup_debug_loc ( pos) ;
253
251
let loc = match & file. name {
@@ -256,7 +254,7 @@ impl<'gcc, 'tcx> DebugInfoMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
256
254
if let Some ( name) = name. to_str ( ) {
257
255
self . context
258
256
. new_location ( name, line as i32 , col as i32 )
259
- } else {
257
+ } else {
260
258
Location :: null ( )
261
259
}
262
260
}
@@ -273,7 +271,7 @@ impl<'gcc, 'tcx> DebugInfoMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
273
271
} else {
274
272
Location :: null ( )
275
273
}
276
- } else {
274
+ } else {
277
275
Location :: null ( )
278
276
} ,
279
277
} ,
0 commit comments