[ThinLTO] Use new in-place symbol changes for exporting module
authorTeresa Johnson <tejohnson@google.com>
Fri, 8 Jan 2016 17:06:29 +0000 (17:06 +0000)
committerTeresa Johnson <tejohnson@google.com>
Fri, 8 Jan 2016 17:06:29 +0000 (17:06 +0000)
commit44f8ddb3bba1e15c8a68b10f07d58abbe8c6bdaa
treebab0350a85c8e1d809d5ea4c434d640b94f4fb1f
parent604ad96a35f12a2e24b5fc83d9d577c41246f14c
[ThinLTO] Use new in-place symbol changes for exporting module

Due to the new in-place ThinLTO symbol handling support added in
r257174, we now invoke renameModuleForThinLTO on the current
module from within the FunctionImport pass.

Additionally, renameModuleForThinLTO no longer needs to return the
Module as it is performing the renaming in place on the one provided.

This commit will be immediately preceeded by a companion clang patch to
remove its invocation of renameModuleForThinLTO.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257181 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Linker/Linker.h
lib/Linker/LinkModules.cpp
lib/Transforms/IPO/FunctionImport.cpp