IR: Add MDCompositeTypeBase::replace*()
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 18 Feb 2015 20:47:52 +0000 (20:47 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 18 Feb 2015 20:47:52 +0000 (20:47 +0000)
commit668aca9b4a6f2c09c5f798beccdb35485c7005bd
tree9df391c95ab3f20d096c25b8abf2fa5fec177414
parent70ee038129a5a241c339c245bf1e165310baf990
IR: Add MDCompositeTypeBase::replace*()

Add `replaceElements()`, `replaceVTableHolder()`, and
`replaceTemplateParams()` to `MDCompositeTypeBase`.  Included an
assertion in `replaceElements()` to match the one in
`DICompositeType::replaceArrays()`.

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