This commit is contained in:
cozis
2022-03-08 21:59:59 +01:00
parent e3afd00da2
commit 4836a9a8c9
3 changed files with 19 additions and 2 deletions
+5
View File
@@ -82,6 +82,11 @@ static const InstrInfo instr_table[] = {
[OPCODE_JUMP] = {"JUMP", 1, (OperandType[]) {OPTP_INT}},
};
const char *Executable_GetOpcodeName(Opcode opcode)
{
return instr_table[opcode].name;
}
Executable *Executable_Copy(Executable *exe)
{
assert(exe != NULL);