[Debug Info] remove DITrivialType and use null to represent unspecified param.
authorManman Ren <manman.ren@gmail.com>
Tue, 29 Jul 2014 18:20:39 +0000 (18:20 +0000)
committerManman Ren <manman.ren@gmail.com>
Tue, 29 Jul 2014 18:20:39 +0000 (18:20 +0000)
commit23ab342d965891b2473895d370d812a51177acb9
tree5d6961ce0f24d1fe94efb7061e96110d3d7e38a3
parent52f23be0802aa01569c0e6870774ac4b5b9c23f8
[Debug Info] remove DITrivialType and use null to represent unspecified param.

Per feedback on r214111, we are going to use null to represent unspecified
parameter. If the type array is {null}, it means a function that returns void;
If the type array is {null, null}, it means a variadic function that returns
void. In summary if we have more than one element in the type array and the last
element is null, it is a variadic function.

rdar://17628609

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214189 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DIBuilder.h
include/llvm/IR/DebugInfo.h
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfUnit.cpp
lib/IR/DIBuilder.cpp
lib/IR/DebugInfo.cpp
test/DebugInfo/varargs.ll