Skip to content

Commit

Permalink
disas/nanomips: Remove function overloading
Browse files Browse the repository at this point in the history
Disassemble function that calls the other variant of it is deleted.
Where it is called, now we're directly calling the other implementation.

Signed-off-by: Milica Lazarevic <milica.lazarevic@syrmia.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220912122635.74032-20-milica.lazarevic@syrmia.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
  • Loading branch information
milica-lazarevic authored and philmd committed Oct 31, 2022
1 parent 22e7b52 commit 49ec1c9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions disas/nanomips.cpp
Expand Up @@ -21917,12 +21917,6 @@ static const Pool MAJOR[2] = {
0x0 }, /* P16 */
};

static int Disassemble(const uint16 *data, char **dis,
TABLE_ENTRY_TYPE & type, Dis_info *info)
{
return Disassemble(data, dis, type, MAJOR, 2, info);
}

static int nanomips_dis(char **buf,
Dis_info *info,
unsigned short one,
Expand All @@ -21932,7 +21926,7 @@ static int nanomips_dis(char **buf,
uint16 bits[3] = {one, two, three};

TABLE_ENTRY_TYPE type;
int size = Disassemble(bits, buf, type, info);
int size = Disassemble(bits, buf, type, MAJOR, 2, info);
return size;
}

Expand Down

0 comments on commit 49ec1c9

Please sign in to comment.