IR: Move creation logic down to MDTuple, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 12 Jan 2015 20:13:56 +0000 (20:13 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 12 Jan 2015 20:13:56 +0000 (20:13 +0000)
commitdc6a335d3d1400a099105792e9ba259d05136968
tree0797f8951182c3ebc4c2cb61f25ae08d10e894f2
parent01965616973bb35c63a0bff1fc40036b9002f1c7
IR: Move creation logic down to MDTuple, NFC

Move creation logic for `MDTuple`s down where it belongs.  Once there
are a few more subclasses, these functions really won't make much sense
here (the `friend` relationship was already awkward).  For now, leave
the `MDNode` versions around, but have it forward down.

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