IR: Add missing clone() overloads
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 17 Feb 2015 23:10:13 +0000 (23:10 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 17 Feb 2015 23:10:13 +0000 (23:10 +0000)
commit15aa8bae807c00bc8c9ce3dee562ce43c5c8b5ec
tree84ceec60e48de07ddd7eddd5eedd5538f5f43389
parent4bf44517c81d55917154117b16f714a0b5ad4e52
IR: Add missing clone() overloads

Add missing specialized node overloads for `MDNode::clone()` (they were
on most of the node types already, but missing from the others).
`MDNode::clone()` returns `TempMDNode` (`std::unique_ptr<MDNode,...>`),
while `TempMDSubrange::clone()` (for example) returns the more
convenient `TempMDSubrange` (`std::unique_ptr<TempMDSubrange,...>`).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229579 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DebugInfoMetadata.h
unittests/IR/MetadataTest.cpp