[cmake] Changes to get Windows self-host working with PGO
authorRussell Gallop <russell.gallop@gmail.com>
Wed, 18 Sep 2019 09:43:13 +0000 (09:43 +0000)
committerRussell Gallop <russell.gallop@gmail.com>
Wed, 18 Sep 2019 09:43:13 +0000 (09:43 +0000)
commita84b200e6048211ae74c511a1660fb2c2c5567da
treeb769c0045675202ab18f5098406a2c63b2f39427
parent178611711122554be1e1a652cc151776cf1caca9
[cmake] Changes to get Windows self-host working with PGO

Fixes quoting of profile arguments to work on Windows
Suppresses adding profile arguments to linker flags when using lld-link
Avoids -fprofile-instr-use being added to rc.exe flags
Removes duplicated adding of -fprofile-instr-use to linker flags (since
r355541)
Move handling LLVM_PROFDATA_FILE to HandleLLVMOptions.cmake

Differential Revision: https://reviews.llvm.org/D62063

llvm-svn: 372209
llvm/CMakeLists.txt
llvm/cmake/modules/HandleLLVMOptions.cmake