Skip to content

Commit a33d1b8

Browse files
debuginfo: Major code cleanup in debuginfo.rs
1 parent 12d87d3 commit a33d1b8

File tree

2 files changed

+266
-257
lines changed

2 files changed

+266
-257
lines changed

src/librustc/middle/trans/base.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,7 +1142,7 @@ pub fn trans_stmt(cx: block, s: &ast::stmt) -> block {
11421142
bcx = init_local(bcx, *local);
11431143
if cx.sess().opts.extra_debuginfo
11441144
&& fcx_has_nonzero_span(bcx.fcx) {
1145-
debuginfo::create_local_var(bcx, *local);
1145+
debuginfo::create_local_var_metadata(bcx, *local);
11461146
}
11471147
}
11481148
ast::decl_item(i) => trans_item(cx.fcx.ccx, i)
@@ -1774,7 +1774,7 @@ pub fn copy_args_to_allocas(fcx: fn_ctxt,
17741774
bcx = _match::store_arg(bcx, args[arg_n].pat, llarg);
17751775

17761776
if fcx.ccx.sess.opts.extra_debuginfo && fcx_has_nonzero_span(fcx) {
1777-
debuginfo::create_arg(bcx, &args[arg_n], args[arg_n].ty.span);
1777+
debuginfo::create_argument_metadata(bcx, &args[arg_n], args[arg_n].ty.span);
17781778
}
17791779
}
17801780

@@ -1948,7 +1948,7 @@ pub fn trans_fn(ccx: @mut CrateContext,
19481948
|fcx| {
19491949
if ccx.sess.opts.extra_debuginfo
19501950
&& fcx_has_nonzero_span(fcx) {
1951-
debuginfo::create_function(fcx);
1951+
debuginfo::create_function_metadata(fcx);
19521952
}
19531953
},
19541954
|_bcx| { });

0 commit comments

Comments
 (0)