[WinEH] Calculate state numbers for the new EH representation
authorDavid Majnemer <david.majnemer@gmail.com>
Tue, 18 Aug 2015 19:07:12 +0000 (19:07 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Tue, 18 Aug 2015 19:07:12 +0000 (19:07 +0000)
commit42be08a76071b47d82c79ed14f64cb2b1269dbca
tree7e35258f1439ea0ee91f11f8384f999710d2bccf
parent28fbb4be5df108cf72a99b73c7c99ded16f3b82f
[WinEH] Calculate state numbers for the new EH representation

State numbers are calculated by performing a walk from the innermost
funclet to the outermost funclet.   Rudimentary support for the new EH
constructs has been added to the assembly printer, just enough to test
the new machinery.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245331 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/WinEHFuncInfo.h
lib/CodeGen/AsmPrinter/WinException.cpp
lib/CodeGen/AsmPrinter/WinException.h
lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
lib/CodeGen/WinEHPrepare.cpp
lib/Target/X86/X86TargetMachine.cpp
lib/Target/X86/X86WinEHState.cpp
test/CodeGen/WinEH/wineh-statenumbering.ll [new file with mode: 0644]