MC: split Win64EHUnwindEmitter into a shared streamer
authorSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 7 Aug 2014 02:59:41 +0000 (02:59 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 7 Aug 2014 02:59:41 +0000 (02:59 +0000)
commit64a8cc7d0d63f5479b48c1e3e1adf85b1d0208c5
tree50b9eb2943b33f2cf5629df92f18e36224c1e602
parentbd3305b60f1b25727618b2f01e5c0a639e569eeb
MC: split Win64EHUnwindEmitter into a shared streamer

This changes Win64EHEmitter into a utility WinEH UnwindEmitter that can be
shared across multiple architectures and a target specific bit which is
overridden (Win64::UnwindEmitter).  This enables sharing the section selection
code across X86 and the intended use in ARM for emitting unwind information for
Windows on ARM.

llvm-svn: 215050
llvm/include/llvm/MC/MCWin64EH.h
llvm/include/llvm/MC/MCWinEH.h
llvm/lib/MC/CMakeLists.txt
llvm/lib/MC/MCAsmStreamer.cpp
llvm/lib/MC/MCWin64EH.cpp
llvm/lib/MC/MCWinEH.cpp [new file with mode: 0644]
llvm/lib/Target/X86/MCTargetDesc/X86WinCOFFStreamer.cpp