Debug Info: improve the verifier to check field types.
authorManman Ren <manman.ren@gmail.com>
Thu, 25 Jul 2013 19:33:30 +0000 (19:33 +0000)
committerManman Ren <manman.ren@gmail.com>
Thu, 25 Jul 2013 19:33:30 +0000 (19:33 +0000)
commitcb420a4bc066b0b85e50b0c362ae20519d28788c
tree43085a023b3855baf7f3fe8c8a0e0e9c4e508d1a
parentb0122be8c30149301cd2348a23ebfbee3406b272
Debug Info: improve the verifier to check field types.

Make sure the context field of DIType is MDNode.
Fix testing cases to make them pass the verifier.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187150 91177308-0d34-0410-b5e6-96231b3b80d8
24 files changed:
lib/IR/DebugInfo.cpp
test/CodeGen/ARM/2009-10-16-Scope.ll
test/CodeGen/ARM/2010-04-15-ScavengerDebugValue.ll
test/CodeGen/ARM/2010-06-25-Thumb2ITInvalidIterator.ll
test/CodeGen/Hexagon/hwloop-dbg.ll
test/CodeGen/Inputs/DbgValueOtherTargets.ll
test/CodeGen/PowerPC/dbg.ll
test/CodeGen/Thumb/2010-07-15-debugOrdering.ll
test/CodeGen/X86/2009-02-12-DebugInfoVLA.ll
test/CodeGen/X86/2009-10-16-Scope.ll
test/CodeGen/X86/dbg-declare.ll
test/CodeGen/X86/dbg-large-unsigned-const.ll
test/CodeGen/X86/dbg-subrange.ll
test/CodeGen/X86/dbg-value-dag-combine.ll
test/CodeGen/X86/dbg-value-location.ll
test/DebugInfo/2010-03-12-llc-crash.ll
test/DebugInfo/2010-03-30-InvalidDbgInfoCrash.ll
test/DebugInfo/2010-04-19-FramePtr.ll
test/DebugInfo/X86/earlydup-crash.ll
test/DebugInfo/inheritance.ll
test/Linker/DbgDeclare.ll
test/Linker/DbgDeclare2.ll
test/Transforms/GlobalOpt/2009-03-05-dbg.ll
test/Transforms/StripSymbols/2010-07-01-DeadDbgInfo.ll