DebugInfo: Assume the CU's Subprogram list only contains definitions.
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 16 May 2014 18:26:53 +0000 (18:26 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 16 May 2014 18:26:53 +0000 (18:26 +0000)
commit33b37c7b12314d292c9074806f38aeaa6a707085
tree2d94571a60bf9654466b50bbb1c65846828ab551
parent117b0385923b380387e8a8e1785673ba4a0c0829
DebugInfo: Assume the CU's Subprogram list only contains definitions.

DIBuilder maintains this invariant and the current DwarfDebug code could
end up doing weird things if it contained declarations (such as putting
the definition DIE inside a CU that contained the declaration - this
doesn't seem like a good idea, so rather than adding logic to handle
this case we'll just ban in for now & cross that bridge if we come to
it later).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209004 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
test/CodeGen/ARM/2010-08-04-StackVariable.ll
test/CodeGen/X86/2010-08-04-StackVariable.ll
test/DebugInfo/2010-07-19-Crash.ll
test/DebugInfo/X86/dbg-declare-arg.ll