Normalize DebugInfoLevel to standard style
This commit is contained in:
parent
442a4744e3
commit
2bc71971e5
10 changed files with 38 additions and 40 deletions
|
@ -46,7 +46,7 @@ use rustc::middle::cstore::{self, LinkMeta, LinkagePreference};
|
|||
use rustc::middle::exported_symbols;
|
||||
use rustc::util::common::{time, print_time_passes_entry};
|
||||
use rustc::util::profiling::ProfileCategory;
|
||||
use rustc::session::config::{self, NoDebugInfo, EntryFnType};
|
||||
use rustc::session::config::{self, DebugInfo, EntryFnType};
|
||||
use rustc::session::Session;
|
||||
use rustc_incremental;
|
||||
use allocator;
|
||||
|
@ -1249,7 +1249,7 @@ fn compile_codegen_unit<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
|
|||
}
|
||||
|
||||
// Finalize debuginfo
|
||||
if cx.sess().opts.debuginfo != NoDebugInfo {
|
||||
if cx.sess().opts.debuginfo != DebugInfo::None {
|
||||
debuginfo::finalize(&cx);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue