Make sure that if we're going to attempt to add a type to a DIE that
authorEric Christopher <echristo@gmail.com>
Thu, 8 Aug 2013 07:40:37 +0000 (07:40 +0000)
committerEric Christopher <echristo@gmail.com>
Thu, 8 Aug 2013 07:40:37 +0000 (07:40 +0000)
commitdc1363f5af47542a602c80e726749bc06d8ef3f8
tree1a40cc31a04e00da38310920dd3d125dbcf8b92c
parentafdd1f8a851349e2b3cdc6d441043ac3f4cdb9b9
Make sure that if we're going to attempt to add a type to a DIE that
the type exists.

Fix up cases where we weren't checking for optional types and add
an assert to addType to make sure we catch this in the future.

Fix up a testcase that was using the tag for DW_TAG_array_type
when it meant DW_TAG_enumeration_type.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187963 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
lib/IR/DIBuilder.cpp
lib/IR/DebugInfo.cpp
test/CodeGen/ARM/debug-info-blocks.ll