Skip to content

Commit 85deeea

Browse files
debuginfo: Unified namespace generation approach for crate-local and external items. Fixed bug related to LLVM metadata uniquing.
1 parent c919629 commit 85deeea

File tree

4 files changed

+109
-222
lines changed

4 files changed

+109
-222
lines changed

src/librustc/lib/llvm.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1968,7 +1968,8 @@ pub mod llvm {
19681968
DerivedFrom: DIType,
19691969
Elements: DIArray,
19701970
RunTimeLang: c_uint,
1971-
VTableHolder: ValueRef)
1971+
VTableHolder: ValueRef,
1972+
UniqueId: *c_char)
19721973
-> DICompositeType;
19731974

19741975
#[fast_ffi]

src/librustc/middle/trans/base.rs

-5
Original file line numberDiff line numberDiff line change
@@ -3119,11 +3119,6 @@ pub fn trans_crate(sess: session::Session,
31193119
symbol_hasher,
31203120
link_meta,
31213121
analysis.reachable);
3122-
3123-
if ccx.sess.opts.debuginfo {
3124-
debuginfo::initialize(ccx, &crate);
3125-
}
3126-
31273122
{
31283123
let _icx = push_ctxt("text");
31293124
trans_mod(ccx, &crate.module);

0 commit comments

Comments
 (0)