Skip to content

Commit 6e5bb0b

Browse files
---
yaml --- r: 143293 b: refs/heads/try2 c: af7b87f h: refs/heads/master i: 143291: 5481a9d v: v3
1 parent 2157ffb commit 6e5bb0b

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 02a0f2822e4911ffa3a36f48c0d9afc48f428ece
8+
refs/heads/try2: af7b87f69d9c4633d7e0c7dd77f34c23bbd433d8
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/librustc/middle/trans/debuginfo.rs

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ pub fn finalize(cx: @mut CrateContext) {
138138
pub fn create_local_var_metadata(bcx: @mut Block, local: &ast::Local) {
139139
let cx = bcx.ccx();
140140
let def_map = cx.tcx.def_map;
141-
let pattern = local.node.pat;
141+
let pattern = local.pat;
142142

143143
let scope = match bcx.parent {
144144
None => create_function_metadata(bcx.fcx),
@@ -157,7 +157,7 @@ pub fn create_local_var_metadata(bcx: @mut Block, local: &ast::Local) {
157157
let ty = node_id_type(bcx, node_id);
158158
let type_metadata = type_metadata(cx, ty, span);
159159

160-
let var_metadata = do as_c_str(name) |name| {
160+
let var_metadata = do name.as_c_str |name| {
161161
unsafe {
162162
llvm::LLVMDIBuilderCreateLocalVariable(
163163
DIB(cx),
@@ -188,7 +188,7 @@ pub fn create_local_var_metadata(bcx: @mut Block, local: &ast::Local) {
188188
var_metadata,
189189
bcx.llbb);
190190

191-
llvm::LLVMSetInstDebugLocation(trans::build::B(bcx), instr);
191+
llvm::LLVMSetInstDebugLocation(trans::build::B(bcx).llbuilder, instr);
192192
}
193193
}
194194
}
@@ -227,7 +227,7 @@ pub fn create_argument_metadata(bcx: @mut Block, arg: &ast::arg, span: span) {
227227
let name: &str = cx.sess.str_of(ident);
228228
debug!("create_argument_metadata: %s", name);
229229

230-
let arg_metadata = do as_c_str(name) |name| {
230+
let arg_metadata = do name.as_c_str |name| {
231231
unsafe {
232232
llvm::LLVMDIBuilderCreateLocalVariable(
233233
DIB(cx),
@@ -260,7 +260,7 @@ pub fn create_argument_metadata(bcx: @mut Block, arg: &ast::arg, span: span) {
260260
arg_metadata,
261261
bcx.llbb);
262262

263-
llvm::LLVMSetInstDebugLocation(trans::build::B(bcx), instr);
263+
llvm::LLVMSetInstDebugLocation(trans::build::B(bcx).llbuilder, instr);
264264
}
265265
}
266266

@@ -623,8 +623,6 @@ fn tuple_metadata(cx: &mut CrateContext,
623623
fn enum_metadata(cx: &mut CrateContext,
624624
enum_type: ty::t,
625625
enum_def_id: ast::def_id,
626-
// _substs is only needed in the other version. Will go away with new snapshot.
627-
_substs: &ty::substs,
628626
span: span)
629627
-> DIType {
630628

@@ -1128,8 +1126,8 @@ fn type_metadata(cx: &mut CrateContext,
11281126
}
11291127
}
11301128
},
1131-
ty::ty_enum(def_id, ref substs) => {
1132-
enum_metadata(cx, t, def_id, substs, span)
1129+
ty::ty_enum(def_id, _) => {
1130+
enum_metadata(cx, t, def_id, span)
11331131
},
11341132
ty::ty_box(ref mt) => {
11351133
create_pointer_to_box_metadata(cx, t, mt.ty)

0 commit comments

Comments
 (0)