summaryrefslogtreecommitdiff
path: root/src/arch/instruction.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2015-07-12 01:57:23 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2015-07-12 01:57:23 (GMT)
commitba1d7ae3ae3c82ab2c3d23a900c16baff6f8ca26 (patch)
tree04a1d3fb7a7e8c9d2dffd91576bcd0d051ae3750 /src/arch/instruction.h
parent2be3bca7ff0f8ab40615fdbf72c149cd6439b0ac (diff)
Defined AIF_RETURN_POINT to replace the previous 'return' accessors.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@546 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch/instruction.h')
-rw-r--r--src/arch/instruction.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/arch/instruction.h b/src/arch/instruction.h
index b570d92..a4ea1b5 100644
--- a/src/arch/instruction.h
+++ b/src/arch/instruction.h
@@ -66,12 +66,13 @@ void g_arch_instruction_append_suffix(GArchInstruction *, const char *);
typedef enum _ArchInstrFlag
{
AIF_NONE = (0 << 0), /* Aucune information */
- AIF_ROUTINE_START = (1 << 0) /* Début de routine */
+ AIF_ROUTINE_START = (1 << 0), /* Début de routine */
+ AIF_RETURN_POINT = (1 << 1) /* Retour de fonction appelée */
} ArchInstrFlag;
/* Ajoute une information complémentaire à une instruction. */
-void g_arch_instruction_set_flag(GArchInstruction *, ArchInstrFlag);
+bool g_arch_instruction_set_flag(GArchInstruction *, ArchInstrFlag);
/* Fournit les informations complémentaires d'une instruction. */
ArchInstrFlag g_arch_instruction_get_flags(const GArchInstruction *);
@@ -179,12 +180,6 @@ typedef union _link_extra_info
/* Informe sur une éventuelle référence à une autre instruction. */
InstructionLinkType g_arch_instruction_get_link(const GArchInstruction *, vmpa_t *);
-/* Précise si l'instruction correspond à un retour de fonction. */
-bool g_arch_instruction_define_as_return(GArchInstruction *, bool);
-
-/* Indique si l'instruction correspond à un retour de fonction. */
-bool g_arch_instruction_is_return(const GArchInstruction *instr);
-
/* Etablit un lien entre deux instructions. */
void g_arch_instruction_link_with(GArchInstruction *, GArchInstruction *, InstructionLinkType, ...);