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)
commitc8d987b12194493d7634c3bde31b0d9340ceb3d2
tree1f02fa0c89f9bf1de3f14f6e4af2d545df33da0d
parent3d4cd756b6044837542acac3483e4cca7bc55814
Linker: Copy over function metadata attachments

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

llvm-svn: 235786
llvm/lib/Linker/LinkModules.cpp
llvm/test/Linker/Inputs/metadata-function.ll [new file with mode: 0644]
llvm/test/Linker/metadata-function.ll [new file with mode: 0644]