]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #59874 - michaelwoerister:pgo-updates-1, r=cramertj
authorMazdak Farrokhzad <twingoow@gmail.com>
Sat, 13 Apr 2019 22:39:46 +0000 (00:39 +0200)
committerGitHub <noreply@github.com>
Sat, 13 Apr 2019 22:39:46 +0000 (00:39 +0200)
Clean up handling of `-Z pgo-gen` commandline option.

This PR adapts the `-Z pgo-gen` flag to how Clang and GCC handle the corresponding `-fprofile-generate` flag. In particular, the flag now optionally takes a directory to place the profiling data in and allows to omit the argument (instead of having to pass an empty string).

1  2 
src/librustc_codegen_llvm/back/write.rs
src/librustc_codegen_ssa/back/write.rs