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)
commite2510cdfe85ee79f97ee49913a16f7ffb4fa40ea
treed9f8133d67b28996e7149e38e032a764fbd57160
parent27d702cb8b4a47a7d0359db2ab6ab1140fef1073
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.

llvm-svn: 235783
llvm/include/llvm/IR/Function.h
llvm/lib/IR/Function.cpp
llvm/lib/IR/LLVMContextImpl.h
llvm/lib/IR/Metadata.cpp
llvm/unittests/IR/MetadataTest.cpp