diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-12-12 18:38:53 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-12-12 18:38:53 (GMT) |
commit | 3754a5e3edeea98ce426b65772708ae91b291c1f (patch) | |
tree | e292aa254f59e61f6f9672b826f08be6f428ffdd /src/arch/instruction.c | |
parent | dcc0438ff24efd5958b8d46940eb395ff2b7ed77 (diff) |
Removed most of the code related to non-working decompilation.
Diffstat (limited to 'src/arch/instruction.c')
-rw-r--r-- | src/arch/instruction.c | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/src/arch/instruction.c b/src/arch/instruction.c index e3490a8..7106631 100644 --- a/src/arch/instruction.c +++ b/src/arch/instruction.c @@ -976,55 +976,6 @@ GBufferLine *g_arch_instruction_print(const GArchInstruction *instr, GCodeBuffer } -/****************************************************************************** -* * -* Paramètres : instr = instruction d'origine à convertir. * -* ctx = contexte de la phase de décompilation. * -* * -* Description : Décompile une instruction de façon générique. * -* * -* Retour : Instruction mise en place ou NULL. * -* * -* Remarques : - * -* * -******************************************************************************/ - -GDecInstruction *g_arch_instruction_decompile(const GArchInstruction *instr, GDecContext *ctx) -{ -#if 0 - - GDecInstruction *result; /* Instruction à retourner */ - GDecInstruction *list; /* Instructions décompilées */ - - if (instr->decomp != NULL) - { - result = instr->decomp(instr, ctx); - - if (result != NULL) - { - list = g_dec_context_get_decomp_instrs(ctx); - - if (list == NULL) list = result; - else g_dec_instruction_add_to_list(&list, result); - - g_dec_context_set_decomp_instrs(ctx, list); - - } - - } - - else - result = NULL; - - return result; - -#endif - - return NULL; - -} - - /* ---------------------------------------------------------------------------------- */ /* TRAITEMENT DES INSTRUCTIONS PAR ENSEMBLE */ /* ---------------------------------------------------------------------------------- */ |