IR: Add Function metadata attachments
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 24 Apr 2015 21:51:02 +0000 (21:51 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 24 Apr 2015 21:51:02 +0000 (21:51 +0000)
commiteb79bb6e61583c3ba05c8478809c02e3cc7bb6d3
tree5a3f1662e3ee365562f1b07b294a1c0a6e55cfca
parent233c2e72168c1e838d65c4a294b329771aed2184
IR: Add Function metadata attachments

Add IR support for `Metadata` attachments.  Assembly and bitcode support
will follow shortly, but for now we just have unit tests.  This is part
of PR23340.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235783 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Function.h
lib/IR/Function.cpp
lib/IR/LLVMContextImpl.h
lib/IR/Metadata.cpp
unittests/IR/MetadataTest.cpp