[WinEH] Add CoreCLR EH table emission
authorJoseph Tremoulet <jotrem@microsoft.com>
Tue, 13 Oct 2015 20:18:27 +0000 (20:18 +0000)
committerJoseph Tremoulet <jotrem@microsoft.com>
Tue, 13 Oct 2015 20:18:27 +0000 (20:18 +0000)
commit3d6511f5ef36418c2fb53a49d82f30828344eb47
tree2d97997c4519b4aef7248dcac10272abfe649d91
parent3d5dddde47d419a06dfcc461bed1a76872af08dc
[WinEH] Add CoreCLR EH table emission

Summary:
Emit the handler and clause locations immediately after the standard
xdata.
Clauses are emitted in the same order and format used to communiate them
to the CLR Execution Engine.
Add a lit test to verify correct table generation on a small but
interesting example function.

Reviewers: majnemer, andrew.w.kaylor, rnk

Subscribers: pgavlin, AndyAyers, llvm-commits

Differential Revision: http://reviews.llvm.org/D13451

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250219 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/WinException.cpp
lib/CodeGen/AsmPrinter/WinException.h
test/CodeGen/WinEH/wineh-coreclr.ll [new file with mode: 0644]