gold plugin: Remap function arguments when creating a replacement function.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 7 Oct 2014 00:47:38 +0000 (00:47 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 7 Oct 2014 00:47:38 +0000 (00:47 +0000)
commit3ddd4fa0ddf1fb9154a9a171dba58c1a3e551362
tree19e57aba201b679738ae99ad5eca99eb1cbe0ac6
parent5307076e20b2bbe6ef61cf7717c37b7e3fe27cdc
gold plugin: Remap function arguments when creating a replacement function.

When creating an internal function replacement for use in an alias we were
not remapping the argument uses in the instructions to point to the new
arguments.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219177 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/gold/Inputs/comdat.ll
test/tools/gold/comdat.ll
tools/gold/gold-plugin.cpp