[PATCH] D15833: [PGO] Enable clang to pass compiler-rt profile support library to linker on Windows

Nathan Slingerland via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 30 14:17:26 PST 2015


slingn created this revision.
slingn added reviewers: davidxl, dnovillo.
slingn added a subscriber: llvm-commits.

This change enables clang to automatically link binaries built with the -fprofile-instr-generate against the clang_rt.profile-i386.lib library.

http://reviews.llvm.org/D15833

Files:
  lib/Driver/Tools.cpp

Index: lib/Driver/Tools.cpp
===================================================================
--- lib/Driver/Tools.cpp
+++ lib/Driver/Tools.cpp
@@ -9473,6 +9473,8 @@
     A.renderAsInput(Args, CmdArgs);
   }
 
+  TC.addProfileRTLibs(Args, CmdArgs);
+
   // We need to special case some linker paths.  In the case of lld, we need to
   // translate 'lld' into 'lld-link', and in the case of the regular msvc
   // linker, we need to use a special search algorithm.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15833.43811.patch
Type: text/x-patch
Size: 466 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151230/bd0529ae/attachment.bin>


More information about the llvm-commits mailing list