Inline and remove select_debuginfo_compression
.
It's trivial and has a single callsite.
This commit is contained in:
parent
20046ceb40
commit
b6d0493388
@ -2294,13 +2294,6 @@ fn select_debuginfo(matches: &getopts::Matches, cg: &CodegenOptions) -> DebugInf
|
|||||||
if max_g > max_c { DebugInfo::Full } else { cg.debuginfo }
|
if max_g > max_c { DebugInfo::Full } else { cg.debuginfo }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn select_debuginfo_compression(
|
|
||||||
_handler: &EarlyErrorHandler,
|
|
||||||
unstable_opts: &UnstableOptions,
|
|
||||||
) -> DebugInfoCompression {
|
|
||||||
unstable_opts.debuginfo_compression
|
|
||||||
}
|
|
||||||
|
|
||||||
pub(crate) fn parse_assert_incr_state(
|
pub(crate) fn parse_assert_incr_state(
|
||||||
handler: &EarlyErrorHandler,
|
handler: &EarlyErrorHandler,
|
||||||
opt_assertion: &Option<String>,
|
opt_assertion: &Option<String>,
|
||||||
@ -2799,8 +2792,7 @@ pub fn build_session_options(
|
|||||||
// for more details.
|
// for more details.
|
||||||
let debug_assertions = cg.debug_assertions.unwrap_or(opt_level == OptLevel::No);
|
let debug_assertions = cg.debug_assertions.unwrap_or(opt_level == OptLevel::No);
|
||||||
let debuginfo = select_debuginfo(matches, &cg);
|
let debuginfo = select_debuginfo(matches, &cg);
|
||||||
let debuginfo_compression: DebugInfoCompression =
|
let debuginfo_compression = unstable_opts.debuginfo_compression;
|
||||||
select_debuginfo_compression(handler, &unstable_opts);
|
|
||||||
|
|
||||||
let mut search_paths = vec![];
|
let mut search_paths = vec![];
|
||||||
for s in &matches.opt_strs("L") {
|
for s in &matches.opt_strs("L") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user