Debug Info: use createAndAddDIE for newly-created Subprogram DIEs.
authorManman Ren <manman.ren@gmail.com>
Tue, 29 Oct 2013 00:58:04 +0000 (00:58 +0000)
committerManman Ren <manman.ren@gmail.com>
Tue, 29 Oct 2013 00:58:04 +0000 (00:58 +0000)
commitbbdd02cc303d0f38f7739b64f419d645ca17b533
treeca555cce9d2cf9433d337eded22ab6467f726ac7
parent1a5e787f701c45ac2487d400faf6f6d4def6dcef
Debug Info: use createAndAddDIE for newly-created Subprogram DIEs.

More patches will be submitted to convert "new DIE(" to use createAddAndDIE in
DwarfCompileUnit.cpp. This will simplify implementation of addDIEEntry where
we have to decide between ref4 and ref_addr, because DIEs that can be shared
across CU will be added to a CU already.

Reviewed off-list by Eric.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193567 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
test/DebugInfo/X86/DW_AT_object_pointer.ll
test/DebugInfo/X86/DW_AT_specification.ll
test/DebugInfo/X86/elf-names.ll
test/DebugInfo/X86/pr11300.ll
test/DebugInfo/X86/template.ll