[ThinLTO] Move global processing from Linker to TransformUtils (NFC)
authorTeresa Johnson <tejohnson@google.com>
Wed, 10 Feb 2016 18:11:31 +0000 (18:11 +0000)
committerTeresa Johnson <tejohnson@google.com>
Wed, 10 Feb 2016 18:11:31 +0000 (18:11 +0000)
commit488a800a4cf59dc27101aa81c698128ad8c8d354
tree6e4a88a690e4a0dcf50e598cc4423c10d2165280
parentee195caf661f009f7c0733fb58ace98e350cc2e8
[ThinLTO] Move global processing from Linker to TransformUtils (NFC)

Summary:
As discussed on IRC, move the ThinLTOGlobalProcessing code out of
the linker, and into TransformUtils. The name of the class is changed
to FunctionImportGlobalProcessing.

Reviewers: joker.eph, rafael

Subscribers: joker.eph, llvm-commits

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

llvm-svn: 260395
llvm/include/llvm/Linker/Linker.h
llvm/include/llvm/Transforms/Utils/FunctionImportUtils.h [new file with mode: 0644]
llvm/lib/Linker/LinkModules.cpp
llvm/lib/Transforms/IPO/FunctionImport.cpp
llvm/lib/Transforms/Utils/CMakeLists.txt
llvm/lib/Transforms/Utils/FunctionImportUtils.cpp [new file with mode: 0644]