Verifier: Reject any unknown named MD nodes in the llvm.dbg namespace.
authorAdrian Prantl <aprantl@apple.com>
Wed, 5 Oct 2016 22:15:37 +0000 (22:15 +0000)
committerAdrian Prantl <aprantl@apple.com>
Wed, 5 Oct 2016 22:15:37 +0000 (22:15 +0000)
commitb3510afcd1eb1c03bb4b30b3a53cc5c6a9997227
treef8463686d7ee15529ed72f9f9e2a519b2f2b6a26
parent497f0854755311e666c750de772de31e6fab10f9
Verifier: Reject any unknown named MD nodes in the llvm.dbg namespace.

This came out of a discussion in https://reviews.llvm.org/D25285.

There used to be various other llvm.dbg.* nodes, but we don't support
upgrading them and we want to reserve the namespace for future uses.

This also removes an entirely obsolete and bitrotted testcase for PR7662.

Reapplies 283390 with a forgotten testcase.

llvm-svn: 283400
llvm/lib/IR/Verifier.cpp
llvm/test/CodeGen/X86/2010-06-01-DeadArg-DbgInfo.ll
llvm/test/DebugInfo/Generic/2010-07-19-Crash.ll [deleted file]
llvm/test/Verifier/dbg-invalid-named-metadata.ll [new file with mode: 0644]