Classify functions by EH personality type rather than using the triple
authorReid Kleckner <reid@kleckner.net>
Fri, 23 Jan 2015 18:49:01 +0000 (18:49 +0000)
committerReid Kleckner <reid@kleckner.net>
Fri, 23 Jan 2015 18:49:01 +0000 (18:49 +0000)
commit5cc1569c548048e5427ef2c5c82de4a787c2a397
tree1e04addd27f71eba672ba56a85dad8702fc710be
parent577feba44b9552a1b68ba52e3bf36b3054b6dae7
Classify functions by EH personality type rather than using the triple

This mostly reverts commit r222062 and replaces it with a new enum. At
some point this enum will grow at least for other MSVC EH personalities.

Also beefs up the way we were sniffing the personality function.
Previously we would emit the Itanium LSDA despite using
__C_specific_handler.

Reviewers: majnemer

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

llvm-svn: 226920
llvm/include/llvm/CodeGen/MachineModuleInfo.h
llvm/include/llvm/MC/MCAsmInfo.h
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
llvm/lib/CodeGen/AsmPrinter/EHStreamer.cpp
llvm/lib/CodeGen/AsmPrinter/Win64Exception.cpp
llvm/lib/CodeGen/MachineModuleInfo.cpp
llvm/lib/CodeGen/Passes.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
llvm/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp
llvm/test/CodeGen/X86/seh-finally.ll [new file with mode: 0755]