Create SampleProfileLoader pass in llvm instead of clang
authorDehao Chen <dehao@google.com>
Wed, 14 Dec 2016 21:41:04 +0000 (21:41 +0000)
committerDehao Chen <dehao@google.com>
Wed, 14 Dec 2016 21:41:04 +0000 (21:41 +0000)
commit5717aff105cc5d5a52604d39d1f5c83e16862f8b
treef0df9e152a8526b46279cdb1c0b67a3804adf8f1
parenta99e082e15422bb2666532001bca76dbe30468bf
Create SampleProfileLoader pass in llvm instead of clang

Summary:
We used to create SampleProfileLoader pass in clang. This makes LTO/ThinLTO unable to add this pass in the linker plugin. This patch moves the SampleProfileLoader pass creation from
clang to llvm pass manager builder.

Reviewers: tejohnson, davidxl, dnovillo

Subscribers: mehdi_amini, cfe-commits

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

llvm-svn: 289715
clang/lib/CodeGen/BackendUtil.cpp