IR: Make DICompositeType mutators private
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Thu, 18 Dec 2014 00:54:39 +0000 (00:54 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Thu, 18 Dec 2014 00:54:39 +0000 (00:54 +0000)
commit1e6990e4dcc4ce10770774a182af1d4836637df6
treec98338850a440e3ce21783ba906c6cac4e15d5c1
parent1025e9e9d63e4b0ba635ea3d12c46c8d574438c8
IR: Make DICompositeType mutators private

Make `DICompositeType` mutators private to prevent misuse.  All calls to
`setArrays()` and `setContainingType()` should go through
`DIBuilder::replaceArrays()` and `DIBuilder::replaceVTableHolder()`.

This is a follow-up to r224482 (now that clang has been updated in
r224483).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224486 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DebugInfo.h