[PATCH] [WinEH] Add an EH registration and state insertion pass for 32-bit x86

Reid Kleckner rnk at google.com
Thu Apr 30 15:58:08 PDT 2015


Hi andrew.w.kaylor, majnemer,

This pass is responsible for constructing the EH registration object
that gets linked into fs:00, which is all it does in this change. In the
future, it will also insert stores to update the EH state number.

I considered keeping this functionality in WinEHPrepare, but it's pretty
separable and X86 specific. It has conceptually very little to do with
the task of WinEHPrepare, which is currently outlining.  WinEHPrepare is
also in theory useful on ARM, but this logic is pretty x86 specific.

http://reviews.llvm.org/D9422

Files:
  include/llvm/MC/MCAsmInfo.h
  lib/CodeGen/AsmPrinter/AsmPrinter.cpp
  lib/CodeGen/WinEHPrepare.cpp
  lib/Target/X86/CMakeLists.txt
  lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp
  lib/Target/X86/X86.h
  lib/Target/X86/X86TargetMachine.cpp
  lib/Target/X86/X86WinEHState.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9422.24779.patch
Type: text/x-patch
Size: 16840 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150430/dcf7c689/attachment.bin>


More information about the llvm-commits mailing list