]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
dwarflint: simplify macros in get_location_opcode_operands
authorPetr Machata <pmachata@redhat.com>
Sun, 4 Oct 2009 18:36:38 +0000 (20:36 +0200)
committerPetr Machata <pmachata@redhat.com>
Wed, 18 Aug 2010 12:55:10 +0000 (14:55 +0200)
src/dwarflint.c

index 2ac9ac9bfd880b7edf9db9b1bda3174b75a07d0f..9f7c489544bab1663b073dc081f305e175151e07 100644 (file)
@@ -4103,18 +4103,16 @@ get_location_opcode_operands (uint8_t opcode, uint8_t *op1, uint8_t *op2)
 {
   switch (opcode)
     {
-#define DW_OP_G(OPCODE, OP1, OP2)  \
+#define DW_OP_2(OPCODE, OP1, OP2) \
       case OPCODE: *op1 = OP1; *op2 = OP2; return true;
-#define DW_OP_0(OPCODE) DW_OP_G(OPCODE, 0, 0)
-#define DW_OP_1(OPCODE, OP1) DW_OP_G(OPCODE, OP1, 0)
-#define DW_OP_2(OPCODE, OP1, OP2) DW_OP_G(OPCODE, OP1, OP2)
+#define DW_OP_1(OPCODE, OP1) DW_OP_2(OPCODE, OP1, 0)
+#define DW_OP_0(OPCODE) DW_OP_2(OPCODE, 0, 0)
 
       DW_OP_OPERANDS
 
 #undef DEF_DW_OP_2
 #undef DEF_DW_OP_1
 #undef DEF_DW_OP_0
-#undef DEF_DW_OP_G
     default:
       return false;
     };