IR: Move creation logic to MDNodeFwdDecl, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 12 Jan 2015 20:21:37 +0000 (20:21 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 12 Jan 2015 20:21:37 +0000 (20:21 +0000)
commitc88b471b9d172d96301c790592bfe19b6d5a9b5c
tree9301b023ee536549d1dd655a920176f3e96ba4e8
parent45db33d6349e9d005f03b0c9416b76b791a64afb
IR: Move creation logic to MDNodeFwdDecl, NFC

Same as with `MDTuple`, factor out a `friend MDNode` by moving creation
logic to the concrete subclass.

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