Fix invocation of Gold plugin with LTO after r355331
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Wed, 13 Mar 2019 23:54:52 +0000 (23:54 +0000)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Wed, 13 Mar 2019 23:54:52 +0000 (23:54 +0000)
commit784cdb439e980e34dfc8ec6999bd21b039bd4d96
treefde2ef4bff2377ad862c68678a93f3edd556fa71
parentd383a342aaa001439d59cb09d3a86ca3c54f8713
Fix invocation of Gold plugin with LTO after r355331

The above commit breaks the usage of PGO and LTO when -fprofile-use is
supplied without a path. This patch changes the usage of this argument
to be inline with its use in addPGOAndCoverageFlags().

Differential revision: https://reviews.llvm.org/D59304

llvm-svn: 356111
clang/lib/Driver/ToolChains/CommonArgs.cpp
clang/test/Driver/cspgo-lto.c [new file with mode: 0644]