[LTO] Add option to generate optimization records
authorAdam Nemet <anemet@apple.com>
Fri, 18 Nov 2016 18:06:28 +0000 (18:06 +0000)
committerAdam Nemet <anemet@apple.com>
Fri, 18 Nov 2016 18:06:28 +0000 (18:06 +0000)
commite9bd022c4135de7c3af402b114acf7619393bb82
treefec0ded8b900be306c4fccaace1cc5c11adabab2
parent23d071ef87a0f442dcba49e37aa1d103eaa78c16
[LTO] Add option to generate optimization records

It is used to drive this from the clang driver via -mllvm.

Same option name is used as in opt.

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

llvm-svn: 287356
llvm/include/llvm/LTO/legacy/LTOCodeGenerator.h
llvm/lib/LTO/LTOCodeGenerator.cpp
llvm/test/LTO/X86/diagnostic-handler-remarks.ll