[WinEH] Skip state numbering when no EH pads are present
authorReid Kleckner <rnk@google.com>
Wed, 16 Sep 2015 17:19:44 +0000 (17:19 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 16 Sep 2015 17:19:44 +0000 (17:19 +0000)
commit1b86a3446fe136cc5e76f087f19c513971c12b83
treeb5c69f6e2bf6d21a5bf63a64e95ed3345b956e6d
parent617bb476352a6878b28b714834221d71051ec281
[WinEH] Skip state numbering when no EH pads are present

Otherwise we'd try to emit the thunk that passes the LSDA to
__CxxFrameHandler3. We don't emit the LSDA if there were no landingpads,
so we'd end up with an assembler error when trying to write the COFF
object.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247820 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineModuleInfo.h
lib/Target/X86/X86WinEHState.cpp
test/CodeGen/WinEH/wineh-statenumbering.ll