Debug Info: improve the verifier to check field types.
authorManman Ren <manman.ren@gmail.com>
Thu, 25 Jul 2013 06:43:01 +0000 (06:43 +0000)
committerManman Ren <manman.ren@gmail.com>
Thu, 25 Jul 2013 06:43:01 +0000 (06:43 +0000)
commit27ce44d3b4d2111c636fd802920dd0c35b7d6829
treee79d72417eac1bd8cf85fc360eefd9c67afe84af
parent4ef7eafa3f823443d1b8921f6020d946612281db
Debug Info: improve the verifier to check field types.

Make sure the context and type fields are MDNodes. We will generate
verification errors if those fields are non-empty strings.
Fix testing cases to make them pass the verifier.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187106 91177308-0d34-0410-b5e6-96231b3b80d8
35 files changed:
lib/IR/DebugInfo.cpp
test/CodeGen/ARM/debug-info-d16-reg.ll
test/CodeGen/ARM/debug-info-qreg.ll
test/CodeGen/ARM/debug-info-s16-reg.ll
test/CodeGen/ARM/debug-info-sreg2.ll
test/CodeGen/X86/2010-01-18-DbgValue.ll
test/CodeGen/X86/2010-05-25-DotDebugLoc.ll
test/CodeGen/X86/2010-05-26-DotDebugLoc.ll
test/CodeGen/X86/2010-11-02-DbgParameter.ll
test/CodeGen/X86/MachineSink-DbgValue.ll
test/CodeGen/X86/dbg-const-int.ll
test/CodeGen/X86/dbg-const.ll
test/CodeGen/X86/dbg-merge-loc-entry.ll
test/CodeGen/X86/dbg-prolog-end.ll
test/CodeGen/X86/dbg-value-terminator.ll
test/DebugInfo/2009-11-03-InsertExtractValue.ll
test/DebugInfo/AArch64/dwarfdump.ll
test/DebugInfo/AArch64/variable-loc.ll
test/DebugInfo/SystemZ/variable-loc.ll
test/DebugInfo/X86/2010-08-10-DbgConstant.ll
test/DebugInfo/X86/DW_AT_byte_size.ll
test/DebugInfo/X86/DW_AT_location-reference.ll
test/DebugInfo/X86/aligned_stack_var.ll
test/DebugInfo/X86/debug-info-static-member.ll
test/DebugInfo/X86/ending-run.ll
test/DebugInfo/X86/misched-dbg-value.ll
test/DebugInfo/X86/op_deref.ll
test/DebugInfo/X86/pr13303.ll
test/DebugInfo/X86/prologue-stack.ll
test/DebugInfo/X86/rvalue-ref.ll
test/DebugInfo/X86/stmt-list-multiple-compile-units.ll
test/DebugInfo/X86/subreg.ll
test/DebugInfo/array.ll
test/DebugInfo/two-cus-from-same-file.ll
test/Transforms/Mem2Reg/ConvertDebugInfo2.ll