Debug info: Support variadic functions.
authorAdrian Prantl <aprantl@apple.com>
Tue, 25 Feb 2014 19:57:42 +0000 (19:57 +0000)
committerAdrian Prantl <aprantl@apple.com>
Tue, 25 Feb 2014 19:57:42 +0000 (19:57 +0000)
commitdbaa6ab8b5527ca32969f4baa0931a674b9f4eef
treecc671f7df974407f9f39858ea91b7f9e5ba6e27c
parent9791b3f9ae71f5d418c2cad08ffb142f3bdbb6dc
Debug info: Support variadic functions.
Variadic functions have an unspecified parameter tag after the last
argument. In IR this is represented as an unspecified parameter in the
subroutine type.

Paired commit with CFE r202185.

rdar://problem/13690847

This re-applies r202184 + a bugfix in DwarfDebug's argument handling.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202188 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DIBuilder.h
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfUnit.cpp
lib/CodeGen/AsmPrinter/DwarfUnit.h
test/DebugInfo/X86/varargs.ll [new file with mode: 0644]