Skip to content

Commit adff462

Browse files
committed
Fixed rebase fallout .
1 parent 1e682e2 commit adff462

File tree

5 files changed

+122
-130
lines changed

5 files changed

+122
-130
lines changed

src/librustc/lib/llvm.rs

-2
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]

src/librustc/middle/trans/base.rs

+3-4
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);

src/librustc/middle/trans/context.rs

+1-1
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)