[PGO] Do not emit runtime hook user function for Linux
authorXinliang David Li <davidxl@google.com>
Thu, 29 Oct 2015 04:08:31 +0000 (04:08 +0000)
committerXinliang David Li <davidxl@google.com>
Thu, 29 Oct 2015 04:08:31 +0000 (04:08 +0000)
commitbdd6759557c1280c62197ca81be4992ea40c33fb
treef68b562a7a0c955a2bbef60a78b6e74b514f7176
parentd5e91b2f9cfdc7cf0d4e56e7f75fd1c989f0b9fa
[PGO] Do not emit runtime hook user function for Linux

Clang driver now injects -u<hook_var> flag in the linker
command line, in which case user function is not needed
any more.

Differential Revision: http://reviews.llvm.org/D14033

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251612 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/InstrProfiling.cpp
test/Instrumentation/InstrProfiling/linkage.ll