OSDN Git Service

MC: make MCWin64EHInstruction a POD-like struct
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 13 Jul 2014 19:03:45 +0000 (19:03 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 13 Jul 2014 19:03:45 +0000 (19:03 +0000)
commit083db8b72c26dc516cdc17b5484e76b81a816065
tree173557d8defef72522d9167e0479e375b3d8db44
parent117ff62354f5a827723ca5a481ca22bea49485ba
MC: make MCWin64EHInstruction a POD-like struct

This is the first of a number of changes designed to generalise
MCWin64EHInstruction to support different target architectures.  An ordered set
(vector) of these instructions is saved per frame to permit the emission of
information for Windows NT style unwinding.  The only bit of information which
is actually target specific here is the Opcode for the unwinding bytecode.  The
remainder of the information is simply generic information that is relevant to
the Windows NT unwinding model.

Remove the accessors for the fields, making them const and public instead.  Sink
the knowledge of the alias'ed name into the single source and sink a single-use
check method into the use.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212914 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCWin64EH.h
lib/MC/MCWin64EH.cpp