diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-12-15 21:56:27 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-12-15 21:56:27 (GMT) |
commit | ece6eb62458f0222f769741ce123eadde07b017c (patch) | |
tree | 72c7db6355b0082d602e0e47ae793a2b4f76c6a4 /src/arch | |
parent | b3aa48e2c40035ca33286d08055eb0933dd55b0c (diff) |
Removed dead code and a compilation warning.
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/arm/v7/helpers.c | 29 | ||||
-rw-r--r-- | src/arch/arm/v7/helpers.h | 3 |
2 files changed, 0 insertions, 32 deletions
diff --git a/src/arch/arm/v7/helpers.c b/src/arch/arm/v7/helpers.c index d63614f..c05025c 100644 --- a/src/arch/arm/v7/helpers.c +++ b/src/arch/arm/v7/helpers.c @@ -231,35 +231,6 @@ GArchOperand *thumb_expand_armv7_imm(uint32_t value) /****************************************************************************** * * -* Paramètres : index = indice du registre correspondant. * -* * -* Description : Crée un opérande représentant un registre ARMv7. * -* * -* Retour : Adresse de la structure mise en place. * -* * -* Remarques : - * -* * -******************************************************************************/ - -GArchOperand *translate_armv7_register(uint8_t index) -{ - GArchOperand *result; /* Opérande à faire remonter */ - GArmV7Register *reg; /* Register à représenter */ - - reg = g_armv7_register_new(index); - - if (reg == NULL) - result = NULL; - else - result = g_register_operand_new(G_ARCH_REGISTER(reg)); - - return result; - -} - - -/****************************************************************************** -* * * Paramètres : value = valeur sur 32 bits maximum à traiter. * * size = taille de la valeur finale à constituer. * * * diff --git a/src/arch/arm/v7/helpers.h b/src/arch/arm/v7/helpers.h index d945ca0..b3fe60f 100644 --- a/src/arch/arm/v7/helpers.h +++ b/src/arch/arm/v7/helpers.h @@ -431,9 +431,6 @@ GArchOperand *sign_extend_armv7_imm(uint32_t, bool, unsigned int); /* Etend une valeur immédiate en mode 'Thumb' ARMv7. */ GArchOperand *thumb_expand_armv7_imm(uint32_t); -/* Crée un opérande représentant un registre ARMv7. */ -//GArchOperand *translate_armv7_register(uint8_t); - /* Réalise un simple transtypage de valeur entière. */ GArchOperand *zero_extend_armv7_imm(uint32_t, unsigned int); |