Verifier: Move more debug info checks away from Verify()
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 31 Mar 2015 01:28:22 +0000 (01:28 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 31 Mar 2015 01:28:22 +0000 (01:28 +0000)
commitc0bf4a0671bf59da12e5e0f66345c8cdb9a53ecb
tree3ebe998aa105794f9f0b9f225ce517128ba513c6
parent0cbd7fc4336eba6f9e58233ead34500d2d943a02
Verifier: Move more debug info checks away from Verify()

Most of these checks were already in the `Verifier` so this is more of a
cleanup.  Now almost everything is over there.

Now that require a `name:` for `MDGlobalVariable`, add a check in
`LLParser` for it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233657 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AsmParser/LLParser.cpp
lib/IR/DebugInfo.cpp
lib/IR/Verifier.cpp
test/Assembler/invalid-mdglobalvariable-empty-name.ll [new file with mode: 0644]
test/Assembler/invalid-mdglobalvariable-missing-name.ll [new file with mode: 0644]
test/Assembler/mdglobalvariable.ll