Skip to content

Commit 3f7e0c0

Browse files
committed
---
yaml --- r: 165739 b: refs/heads/auto c: c5aaa8c h: refs/heads/master i: 165737: 4c3f7ce 165735: f6809da v: v3
1 parent 7e69dc9 commit 3f7e0c0

File tree

4 files changed

+2
-41
lines changed

4 files changed

+2
-41
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: 8e2d952c6815d8ab3a0192cc3085737ee48c2377
13+
refs/heads/auto: c5aaa8cc05fc9d7a565eabbaafb8a1fc1effb66d
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/librustc_trans/trans/controlflow.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,6 @@ pub fn trans_for<'blk, 'tcx>(mut bcx: Block<'blk, 'tcx>,
286286
debug!("iterator type is {}, datum type is {}",
287287
ppaux::ty_to_string(bcx.tcx(), iterator_type),
288288
ppaux::ty_to_string(bcx.tcx(), iterator_datum.ty));
289-
290289
let lliterator = load_ty(bcx, iterator_datum.val, iterator_datum.ty);
291290

292291
// Create our basic blocks and set up our loop cleanups.
@@ -366,8 +365,6 @@ pub fn trans_for<'blk, 'tcx>(mut bcx: Block<'blk, 'tcx>,
366365
llpayload,
367366
binding_cleanup_scope_id);
368367

369-
debuginfo::create_for_loop_var_metadata(body_bcx_in, pat);
370-
371368
// Codegen the body.
372369
body_bcx_out = trans_block(body_bcx_out, body, expr::Ignore);
373370
body_bcx_out =

branches/auto/src/librustc_trans/trans/debuginfo.rs

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,43 +1049,6 @@ pub fn create_argument_metadata(bcx: Block, arg: &ast::Arg) {
10491049
})
10501050
}
10511051

1052-
/// Creates debug information for the given for-loop variable.
1053-
///
1054-
/// Adds the created metadata nodes directly to the crate's IR.
1055-
pub fn create_for_loop_var_metadata(bcx: Block, pat: &ast::Pat) {
1056-
if fn_should_be_ignored(bcx.fcx) {
1057-
return;
1058-
}
1059-
1060-
let def_map = &bcx.tcx().def_map;
1061-
1062-
pat_util::pat_bindings(def_map, pat, |_, node_id, span, spanned_ident| {
1063-
let datum = match bcx.fcx.lllocals.borrow().get(&node_id).cloned() {
1064-
Some(datum) => datum,
1065-
None => {
1066-
bcx.sess().span_bug(span,
1067-
format!("no entry in lllocals table for {}",
1068-
node_id).as_slice());
1069-
}
1070-
};
1071-
1072-
if unsafe { llvm::LLVMIsAAllocaInst(datum.val) } == ptr::null_mut() {
1073-
bcx.sess().span_bug(span, "debuginfo::create_for_loop_var_metadata() - \
1074-
Referenced variable location is not an alloca!");
1075-
}
1076-
1077-
let scope_metadata = scope_metadata(bcx.fcx, node_id, span);
1078-
1079-
declare_local(bcx,
1080-
spanned_ident.node,
1081-
datum.ty,
1082-
scope_metadata,
1083-
DirectVariable { alloca: datum.val },
1084-
LocalVariable,
1085-
span);
1086-
})
1087-
}
1088-
10891052
pub fn get_cleanup_debug_loc_for_ast_node<'a, 'tcx>(cx: &CrateContext<'a, 'tcx>,
10901053
node_id: ast::NodeId,
10911054
node_span: Span,

branches/auto/src/test/debuginfo/lexical-scope-in-for-loop.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// ignore-android: FIXME(#10381)
12+
// ignore-test: Not sure what is going on here --pcwalton
1213
// min-lldb-version: 310
1314

1415
// compile-flags:-g

0 commit comments

Comments
 (0)