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)
commit587377023819696cc21669e17dfcb228ac942848
treefa838383bb6a150a069f9d9ac5d813e0cbd8a9d1
parent02983be252186caf1afb42f54786f5d88420cc13
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.

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