IR: Disallow function-local metadata attachments
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 6 Dec 2014 02:29:44 +0000 (02:29 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 6 Dec 2014 02:29:44 +0000 (02:29 +0000)
commit09ba28c27c1d606d25924cf36927d433d7b2dc8c
treea86d4940b776bbf07e34fabb5a1f853d53252139
parente1d7711d2f9cc628a3e8fa0c6f4925af8f09651e
IR: Disallow function-local metadata attachments

Metadata attachments to instructions cannot be function-local.

This is part of PR21532.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223574 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AsmParser/LLParser.cpp
lib/Bitcode/Reader/BitcodeReader.cpp
lib/IR/Metadata.cpp
test/Feature/metadata.ll
test/Linker/metadata-a.ll
test/Linker/metadata-b.ll