Skip to content

Commit 3308923

Browse files
committed
---
yaml --- r: 66023 b: refs/heads/master c: adff462 h: refs/heads/master i: 66021: 689a65d 66019: 7df3e4a 66015: bca2d00 v: v3
1 parent 7393213 commit 3308923

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,5 +1,5 @@
11
---
2-
refs/heads/master: 1e682e29eb8f5ddaf36e6374f46d8d8ac364d824
2+
refs/heads/master: adff46250ed9e9b3c31da65b2997a5458e41305a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 18e3db7392d2d0697b7e27d6d986139960144d85
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9

trunk/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]

trunk/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);

trunk/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)