Skip to content

Commit d208fdf

Browse files
committed
---
yaml --- r: 63442 b: refs/heads/snap-stage3 c: adff462 h: refs/heads/master v: v3
1 parent 57f2c7d commit d208fdf

File tree

6 files changed

+123
-131
lines changed

6 files changed

+123
-131
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 1e682e29eb8f5ddaf36e6374f46d8d8ac364d824
4+
refs/heads/snap-stage3: adff46250ed9e9b3c31da65b2997a5458e41305a
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/librustc/lib/llvm.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,6 @@ pub mod llvm {
294294
pub unsafe fn LLVMGetModuleContext(M: ModuleRef) -> ContextRef;
295295
#[fast_ffi]
296296
pub unsafe fn LLVMDisposeModule(M: ModuleRef);
297-
#[fast_ffi]
298-
pub unsafe fn LLVMGetModuleContext(M: ModuleRef) -> ContextRef;
299297

300298
/** Data layout. See Module::getDataLayout. */
301299
#[fast_ffi]

branches/snap-stage3/src/librustc/middle/trans/base.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3080,7 +3080,6 @@ pub fn trans_crate(sess: session::Session,
30803080
// 1. http://llvm.org/bugs/show_bug.cgi?id=11479
30813081
let llmod_id = link_meta.name.to_owned() + ".rc";
30823082
3083-
Some(debuginfo::mk_ctxt(llmod, copy llmod_id))
30843083
// FIXME(#6511): get LLVM building with --enable-threads so this
30853084
// function can be called
30863085
// if !llvm::LLVMRustStartMultithreading() {
@@ -3109,9 +3108,9 @@ pub fn trans_crate(sess: session::Session,
31093108
fill_crate_map(ccx, ccx.crate_map);
31103109
glue::emit_tydescs(ccx);
31113110
write_abi_version(ccx);
3112-
if ccx.sess.opts.debuginfo {
3113-
debuginfo::finalize(ccx);
3114-
}
3111+
if ccx.sess.opts.debuginfo {
3112+
debuginfo::finalize(ccx);
3113+
}
31153114
31163115
// Translate the metadata.
31173116
write_metadata(ccx, crate);

branches/snap-stage3/src/librustc/middle/trans/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ impl CrateContext {
148148
lib::llvm::associate_type(tn, @"tydesc", tydesc_type);
149149
let crate_map = decl_crate_map(sess, link_meta, llmod);
150150
let dbg_cx = if sess.opts.debuginfo {
151-
Some(debuginfo::mk_ctxt(name.to_owned()))
151+
Some(debuginfo::DebugContext::new(llmod, name.to_owned()))
152152
} else {
153153
None
154154
};

0 commit comments

Comments
 (0)