MC: make WinEH opcode an opaque value
authorSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 17 Jul 2014 03:08:50 +0000 (03:08 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 17 Jul 2014 03:08:50 +0000 (03:08 +0000)
commitab820860facf4b9533bbcb04fdca55e7a85267fe
treed2b3142cf788e49bba01c5fc24816934d53f5ff1
parent4fc91538e93860a0b86b72530054acc301ab9c0e
MC: make WinEH opcode an opaque value

This makes the opcode an opaque value (unsigned int) rather than the
enumeration.  This permits the use of target specific operands.

Split out the generic type into a MCWinEH header and add a supporting
MCWin64EH::Instruction to abstract out the selection of the opcode and
construction of the actual instruction.

llvm-svn: 213221
llvm/include/llvm/MC/MCWin64EH.h
llvm/include/llvm/MC/MCWinEH.h [new file with mode: 0644]
llvm/lib/MC/MCStreamer.cpp
llvm/lib/MC/MCWin64EH.cpp