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)
commit35303fd739705b9167fb2596175e5cb397921566
tree78b922fc24c6d8a6c3ce848fe3914da5346dc9f6
parent6980404cfe7c18ee03369102843ddeaf21e64fcc
IR: Disallow function-local metadata attachments

Metadata attachments to instructions cannot be function-local.

This is part of PR21532.

llvm-svn: 223574
llvm/lib/AsmParser/LLParser.cpp
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/lib/IR/Metadata.cpp
llvm/test/Feature/metadata.ll
llvm/test/Linker/metadata-a.ll
llvm/test/Linker/metadata-b.ll