[Debug Info] add DISubroutineType and its creation takes DITypeArray.
authorManman Ren <manman.ren@gmail.com>
Mon, 28 Jul 2014 22:24:06 +0000 (22:24 +0000)
committerManman Ren <manman.ren@gmail.com>
Mon, 28 Jul 2014 22:24:06 +0000 (22:24 +0000)
commit807538b567af91393264a425ed985b57bd908e71
treefc9a25ecf7a52e23d12dfa78ba2e4d8f725d6ea6
parent0b783fc554d60729e19485891b5a7743fd609635
[Debug Info] add DISubroutineType and its creation takes DITypeArray.

DITypeArray is an array of DITypeRef, at its creation, we will create
DITypeRef (i.e use the identifier if the type node has an identifier).

This is the last patch to unique the type array of a subroutine type.

rdar://17628609

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214132 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
include/llvm/IR/DIBuilder.h
include/llvm/IR/DebugInfo.h
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfUnit.cpp
lib/CodeGen/AsmPrinter/DwarfUnit.h
lib/IR/DIBuilder.cpp
lib/IR/DebugInfo.cpp
lib/Transforms/Instrumentation/DebugIR.cpp
test/CodeGen/X86/2012-11-30-regpres-dbg.ll
test/Linker/type-unique-type-array-a.ll [new file with mode: 0644]
test/Linker/type-unique-type-array-b.ll [new file with mode: 0644]
unittests/Transforms/Utils/Cloning.cpp