llvm/lib/Bitcode/Writer
Adrian Prantl 1bf6297ee8 Add support for DW_TAG_thrown_type.
For Swift we would like to be able to encode the error types that a
function may throw, so the debugger can display them alongside the
function's return value when finish-ing a function.

DWARF defines DW_TAG_thrown_type (intended to be used for C++ throw()
declarations) that is a perfect fit for this purpose. This patch wires
up support for DW_TAG_thrown_type in LLVM by adding a list of thrown
types to DISubprogram.

To offset the cost of the extra pointer, there is a follow-up patch
that turns DISubprogram into a variable-length node.

rdar://problem/29481673

Differential Revision: https://reviews.llvm.org/D32559

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301489 91177308-0d34-0410-b5e6-96231b3b80d8
2017-04-26 22:56:44 +00:00
..
BitcodeWriter.cpp Add support for DW_TAG_thrown_type. 2017-04-26 22:56:44 +00:00
BitcodeWriterPass.cpp Split Bitcode/ReaderWriter.h into separate reader and writer headers 2016-11-11 05:34:58 +00:00
BitWriter.cpp Split Bitcode/ReaderWriter.h into separate reader and writer headers 2016-11-11 05:34:58 +00:00
CMakeLists.txt
LLVMBuild.txt Bitcode: Add missing build dep to fix shlib build. 2017-04-17 18:53:27 +00:00
ValueEnumerator.cpp Make getSlotAttributes return an AttributeSet instead of a wrapper list 2017-04-24 22:25:02 +00:00
ValueEnumerator.h [Bitcode] Refactor attribute group writing to avoid getSlotAttributes 2017-04-24 20:38:30 +00:00