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)
commitbf68e80d0650c816f0ba8ed1a1f90c0f43701996
treedff4dd11f37cf7c7fac036699af37851149bcea4
parent6b1f4659f98d3471dd8e821b5e60ca9abdb78421
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.

llvm-svn: 225697
llvm/include/llvm/IR/Metadata.def
llvm/include/llvm/IR/Metadata.h
llvm/lib/IR/LLVMContextImpl.cpp
llvm/lib/IR/Metadata.cpp