arm64: handle alias insn in a better way, and add support for MNEG. bug reported by Patroklos Argyroudis
diff --git a/MCInst.c b/MCInst.c
index 1ec8f8a..c7d8b17 100644
--- a/MCInst.c
+++ b/MCInst.c
@@ -35,11 +35,21 @@
inst->Opcode = Op;
}
+void MCInst_setOpcodePub(MCInst *inst, unsigned Op)
+{
+ inst->OpcodePub = Op;
+}
+
unsigned MCInst_getOpcode(const MCInst *inst)
{
return inst->Opcode;
}
+unsigned MCInst_getOpcodePub(const MCInst *inst)
+{
+ return inst->OpcodePub;
+}
+
MCOperand *MCInst_getOperand(MCInst *inst, unsigned i)
{
return &inst->Operands[i];