[ThinLTO] Add option for printing import failure reasons
authorTeresa Johnson <tejohnson@google.com>
Fri, 17 Aug 2018 16:53:47 +0000 (16:53 +0000)
committerTeresa Johnson <tejohnson@google.com>
Fri, 17 Aug 2018 16:53:47 +0000 (16:53 +0000)
commitcb9a82fc7bbe3210d745e26d3e4c5fb5c7002c72
treef5fe3e7caa77a24348faef8f547e3a96478c74ca
parent3461bfaa9cc7766330b3539b02b65c0ebf85755a
[ThinLTO] Add option for printing import failure reasons

Summary:
Adds the option for the printing of summary information about functions
considered but rejected for importing during the thin link.

Reviewers: davidxl

Subscribers: mehdi_amini, inglorion, eraman, steven_wu, dexonsmith, llvm-commits

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

llvm-svn: 340047
llvm/include/llvm/IR/ModuleSummaryIndex.h
llvm/include/llvm/Transforms/IPO/FunctionImport.h
llvm/lib/IR/AsmWriter.cpp
llvm/lib/Transforms/IPO/FunctionImport.cpp
llvm/test/ThinLTO/X86/funcimport2.ll