Linker: Copy over function metadata attachments
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 24 Apr 2015 22:07:31 +0000 (22:07 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 24 Apr 2015 22:07:31 +0000 (22:07 +0000)
commit8efc1906901401ecf6d72975aca4a8a40e1706d4
tree48657eef686f6c3ea1b3e12061bd0d0477a88e4e
parentae3211466a644543315876809e5a516ab5dd1ffd
Linker: Copy over function metadata attachments

Update `lib/Linker` to handle `Function` metadata attachments.  The
attachments stick with the function body.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235786 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Linker/LinkModules.cpp
test/Linker/Inputs/metadata-function.ll [new file with mode: 0644]
test/Linker/metadata-function.ll [new file with mode: 0644]