Debug Info: clean up usage of Verify.
authorManman Ren <mren@apple.com>
Fri, 28 Jun 2013 05:43:10 +0000 (05:43 +0000)
committerManman Ren <mren@apple.com>
Fri, 28 Jun 2013 05:43:10 +0000 (05:43 +0000)
commitcbafae6d33031a72ba8219c28cb0e852511f79a3
tree3b8b95912dc89368c64583771df01b53557e4a09
parentc084c0945b0530180e8969f5e2017d02d06db130
Debug Info: clean up usage of Verify.

No functionality change.
It should suffice to check the type of a debug info metadata, instead of
calling Verify. For cases where we know the type of a DI metadata, use
assert.

Also update testing cases to make them conform to the format of DI classes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185135 91177308-0d34-0410-b5e6-96231b3b80d8
17 files changed:
lib/CodeGen/MachineInstr.cpp
lib/CodeGen/SelectionDAG/FastISel.cpp
lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
lib/Target/NVPTX/NVPTXAsmPrinter.cpp
lib/Transforms/IPO/DeadArgumentElimination.cpp
lib/Transforms/IPO/StripSymbols.cpp
lib/Transforms/Instrumentation/GCOVProfiling.cpp
lib/Transforms/Utils/Local.cpp
test/CodeGen/ARM/2010-08-04-StackVariable.ll
test/CodeGen/Generic/dbg_value.ll
test/CodeGen/X86/2010-08-04-StackVariable.ll
test/DebugInfo/2010-03-24-MemberFn.ll
test/DebugInfo/X86/2011-12-16-BadStructRef.ll
test/Transforms/InstCombine/debuginfo.ll
tools/opt/opt.cpp