OSDN Git Service

Add 'thinlto_src_module' metadata to imported function
authorPiotr Padlewski <piotr.padlewski@gmail.com>
Wed, 6 Jul 2016 20:26:25 +0000 (20:26 +0000)
committerPiotr Padlewski <piotr.padlewski@gmail.com>
Wed, 6 Jul 2016 20:26:25 +0000 (20:26 +0000)
commita5ef55b509bd4bf3b4503d7eb1cda88de7f820c8
tree45895d6cbaf06dd369b6fa27711008cc1797814e
parent1a6ed75eac241bee45cfe39ce6ce7477bd62de9c
Add 'thinlto_src_module' metadata to imported function

Added metadata to be able to make statistics on how many functions
that have been imported have been removed. Also module name might
be helpfull when debugging.

Reviewers: tejohnson, eraman

Subscribers: mehdi_amini, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274668 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/FunctionImport.cpp
test/Transforms/FunctionImport/funcimport.ll