1
Fork 0

Clean up handling of -Zpgo-gen commandline option.

This commit is contained in:
Michael Woerister 2019-04-10 13:46:37 +02:00
parent 3750348daf
commit 7b1df42acc
9 changed files with 60 additions and 27 deletions

View file

@ -104,7 +104,7 @@ pub fn set_probestack(cx: &CodegenCx<'ll, '_>, llfn: &'ll Value) {
}
// probestack doesn't play nice either with pgo-gen.
if cx.sess().opts.debugging_opts.pgo_gen.is_some() {
if cx.sess().opts.debugging_opts.pgo_gen.enabled() {
return;
}