Add the ExceptionHandling::MSVC enumeration
authorReid Kleckner <reid@kleckner.net>
Fri, 19 Dec 2014 22:19:48 +0000 (22:19 +0000)
committerReid Kleckner <reid@kleckner.net>
Fri, 19 Dec 2014 22:19:48 +0000 (22:19 +0000)
commit93acac6cfcc935d95f0941b181d903a595920e70
tree989996b4d9d00865cf661c043e55c1c34e8cc8f2
parent1da5f1645b343db2deb637f2ab566d83981a868c
Add the ExceptionHandling::MSVC enumeration

It is intended to be used for a family of personality functions that
have similar IR preparation requirements. Typically when interoperating
with MSVC personality functions, bits of functionality need to be
outlined from the main function into helper functions. There is also
usually more than one landing pad per invoke, which does not match the
LLVM IR landingpad representation.

None of this is implemented yet. This change just adds a new enum that
is active for *-windows-msvc and delegates to the EH removal preparation
pass.  No functionality change for other targets.

llvm-svn: 224625
llvm/include/llvm/MC/MCAsmInfo.h
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/lib/CodeGen/AsmPrinter/EHStreamer.cpp
llvm/lib/CodeGen/Passes.cpp
llvm/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp
llvm/lib/Target/X86/X86FrameLowering.cpp
llvm/test/CodeGen/X86/fast-isel-cmp-branch.ll
llvm/test/CodeGen/X86/fast-isel-gep.ll
llvm/test/CodeGen/X86/scev-interchange.ll
llvm/test/CodeGen/X86/win64_eh.ll