diff options
| author | Michael Woerister <michaelwoerister@posteo> | 2019-05-28 16:13:59 +0200 |
|---|---|---|
| committer | Michael Woerister <michaelwoerister@posteo> | 2019-05-28 16:14:34 +0200 |
| commit | 64ee32e53a7f6d416b60c259e84623014b96c33b (patch) | |
| tree | 3c96cfbe7694abaab66e8ebd0a0ea056aa65b98b /src/librustc_codegen_ssa | |
| parent | 53f1c38734dd8afdca708a01dced14dd8139bb7b (diff) | |
| download | rust-64ee32e53a7f6d416b60c259e84623014b96c33b.tar.gz rust-64ee32e53a7f6d416b60c259e84623014b96c33b.zip | |
Rename PgoGenerate to something more general.
Diffstat (limited to 'src/librustc_codegen_ssa')
| -rw-r--r-- | src/librustc_codegen_ssa/back/write.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_codegen_ssa/back/write.rs b/src/librustc_codegen_ssa/back/write.rs index 74c41969268..5abff2d8ec3 100644 --- a/src/librustc_codegen_ssa/back/write.rs +++ b/src/librustc_codegen_ssa/back/write.rs @@ -13,7 +13,7 @@ use rustc::dep_graph::{WorkProduct, WorkProductId, WorkProductFileKind}; use rustc::dep_graph::cgu_reuse_tracker::CguReuseTracker; use rustc::middle::cstore::EncodedMetadata; use rustc::session::config::{self, OutputFilenames, OutputType, Passes, Lto, - Sanitizer, PgoGenerate}; + Sanitizer, SwitchWithOptPath}; use rustc::session::Session; use rustc::util::nodemap::FxHashMap; use rustc::hir::def_id::{CrateNum, LOCAL_CRATE}; @@ -56,7 +56,7 @@ pub struct ModuleConfig { /// Some(level) to optimize binary size, or None to not affect program size. pub opt_size: Option<config::OptLevel>, - pub pgo_gen: PgoGenerate, + pub pgo_gen: SwitchWithOptPath, pub pgo_use: Option<PathBuf>, // Flags indicating which outputs to produce. @@ -94,7 +94,7 @@ impl ModuleConfig { opt_level: None, opt_size: None, - pgo_gen: PgoGenerate::Disabled, + pgo_gen: SwitchWithOptPath::Disabled, pgo_use: None, emit_no_opt_bc: false, |
