[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)
commitf93ac4bfadc705760853c3bcb6463b1d58c7d1dc
treedc3888dbb8062675ae437f96aafdca67b762e47d
parenta3a6c12c0315d03fd8139606793b0d22ef2a57f6
[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

llvm-svn: 214189
llvm/include/llvm/IR/DIBuilder.h
llvm/include/llvm/IR/DebugInfo.h
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
llvm/lib/IR/DIBuilder.cpp
llvm/lib/IR/DebugInfo.cpp
llvm/test/DebugInfo/varargs.ll