Verifier: Check operands of MDSubprogram nodes
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 30 Mar 2015 16:19:15 +0000 (16:19 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 30 Mar 2015 16:19:15 +0000 (16:19 +0000)
commitbd38c8d788561f8d6d90c8d8677c95a9bf96ea48
tree4fc0e280799e154c0ea184cec99918702a285ff7
parentf88cbb8c49bd14e4da90a9d268773c6726bd7102
Verifier: Check operands of MDSubprogram nodes

Check operands of `MDSubprogram`s in the verifier, and update the
accessors and factory functions to use more specific types.

There were a lot of broken testcases, which I fixed in r233466.  If you
have out-of-tree tests for debug info, you probably need similar changes
to the ones I made there.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233559 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DebugInfoMetadata.h
lib/IR/AsmWriter.cpp
lib/IR/DIBuilder.cpp
lib/IR/LLVMContextImpl.h
lib/IR/Verifier.cpp
unittests/IR/MetadataTest.cpp