IR: Prepare for a new UniquableMDNode subclass, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 12 Jan 2015 20:56:33 +0000 (20:56 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 12 Jan 2015 20:56:33 +0000 (20:56 +0000)
commit343bb3e252718e5b3bd7909f13c4add6e44199c9
tree1fd98ea7074cb872ddb44f946ee300e7d26914be
parentd1ec4f037d61f8395714bd9588977291a69701da
IR: Prepare for a new UniquableMDNode subclass, NFC

Add generic dispatch for the parts of `UniquableMDNode` that cast to
`MDTuple`.  This makes adding other subclasses (like PR21433's
`MDLocation`) easier.

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