mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-04 06:26:28 +00:00
Add method MachineInstr::replace to rewrite a machine instruction in place.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3843 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -295,6 +295,18 @@ public:
|
||||
unsigned numOperands,
|
||||
OpCodeMask _opCodeMask = 0x0);
|
||||
inline ~MachineInstr () {}
|
||||
|
||||
//
|
||||
// Support to rewrite a machine instruction in place: for now, simply
|
||||
// replace() and then set new operands with Set.*Operand methods below.
|
||||
//
|
||||
void replace (MachineOpCode _opCode,
|
||||
unsigned numOperands,
|
||||
OpCodeMask _opCodeMask = 0x0);
|
||||
|
||||
//
|
||||
// The op code. Note that MachineOpCode is a target-specific type.
|
||||
//
|
||||
const MachineOpCode getOpCode () const { return opCode; }
|
||||
|
||||
//
|
||||
|
Reference in New Issue
Block a user