DebugInfo: Sure up subprogram variable list handling with more assertions and fewer...
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 14 May 2014 21:52:46 +0000 (21:52 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 14 May 2014 21:52:46 +0000 (21:52 +0000)
commit3f62ac3ac1267376c3c7ed10bd53a40b4f024ce9
treecde1f6ae78951c580cd75c9e747af2705e385625
parentfbb8f38bb75c7f9616e26a8d4f11cb4c73a15de6
DebugInfo: Sure up subprogram variable list handling with more assertions and fewer conditionals.

Many old tests using prior schemas still had some brokenness here (both
indirect arrays and arrays with single bogus elements). Fixed those up
so they don't hit the new assertions.

Also reduced nesting in some places, etc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208817 91177308-0d34-0410-b5e6-96231b3b80d8
20 files changed:
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
test/CodeGen/Hexagon/hwloop-dbg.ll
test/CodeGen/PowerPC/dbg.ll
test/DebugInfo/2009-11-05-DeadGlobalVariable.ll
test/DebugInfo/X86/2011-09-26-GlobalVarContext.ll
test/DebugInfo/X86/2011-12-16-BadStructRef.ll
test/DebugInfo/X86/DW_AT_byte_size.ll
test/DebugInfo/X86/DW_AT_specification.ll
test/DebugInfo/X86/block-capture.ll
test/DebugInfo/X86/concrete_out_of_line.ll
test/DebugInfo/X86/dbg-declare.ll
test/DebugInfo/X86/dbg-subrange.ll
test/DebugInfo/X86/elf-names.ll
test/DebugInfo/X86/ending-run.ll
test/DebugInfo/X86/linkage-name.ll
test/DebugInfo/X86/pr11300.ll
test/DebugInfo/X86/pr12831.ll
test/DebugInfo/X86/sret.ll
test/DebugInfo/namespace.ll
test/DebugInfo/two-cus-from-same-file.ll