Metadata: Add typed array-like wrapper for MDTuple
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 6 Apr 2015 17:45:07 +0000 (17:45 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 6 Apr 2015 17:45:07 +0000 (17:45 +0000)
commit7a7e280448706d8b143377d65d69f7c4ecc8caa5
tree959df48c43aabcde7b7b463f6b02a34bdde90e9e
parent398069064dc90cddafc1f51c513d73ee7806beac
Metadata: Add typed array-like wrapper for MDTuple

Add `MDTupleTypedArrayWrapper`, a wrapper around `MDTuple` that adapts
it to look like an array and cast its operands to the given type.  This
is designed to be a replacement for `DITypedArray<>`, which is in the
`DIDescriptor` hierarchy.

llvm-svn: 234183
llvm/include/llvm/IR/DebugInfoMetadata.h
llvm/include/llvm/IR/Metadata.h
llvm/lib/IR/Verifier.cpp