diff options
author | Alan Modra <amodra@gmail.com> | 2021-03-31 10:36:19 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-03-31 10:49:23 +1030 |
commit | 78933a4ad9ae9c2e274d41e6b3036ea582c47810 (patch) | |
tree | d88281747f95a9e279e16043aaf57c7093481d85 /opcodes/nds32-dis.c | |
parent | 0a1b45a20eaa98d4d9026dc1fd17e79e741183af (diff) | |
download | fsf-binutils-gdb-78933a4ad9ae9c2e274d41e6b3036ea582c47810.zip fsf-binutils-gdb-78933a4ad9ae9c2e274d41e6b3036ea582c47810.tar.gz fsf-binutils-gdb-78933a4ad9ae9c2e274d41e6b3036ea582c47810.tar.bz2 |
Use bool in opcodes
cpu/
* frv.opc: Replace bfd_boolean with bool, FALSE with false, and
TRUE with true throughout.
opcodes/
* sysdep.h (POISON_BFD_BOOLEAN): Define.
* aarch64-asm-2.c, * aarch64-asm.c, * aarch64-asm.h,
* aarch64-dis-2.c, * aarch64-dis.c, * aarch64-dis.h,
* aarch64-gen.c, * aarch64-opc.c, * aarch64-opc.h, * arc-dis.c,
* arc-dis.h, * arc-fxi.h, * arc-opc.c, * arm-dis.c, * bfin-dis.c,
* cris-dis.c, * csky-dis.c, * csky-opc.h, * dis-buf.c,
* disassemble.c, * frv-opc.c, * frv-opc.h, * h8300-dis.c,
* i386-dis.c, * m68k-dis.c, * metag-dis.c, * microblaze-dis.c,
* microblaze-dis.h, * micromips-opc.c, * mips-dis.c,
* mips-formats.h, * mips-opc.c, * mips16-opc.c, * mmix-dis.c,
* msp430-dis.c, * nds32-dis.c, * nfp-dis.c, * nios2-dis.c,
* ppc-dis.c, * riscv-dis.c, * score-dis.c, * score7-dis.c,
* tic6x-dis.c, * v850-dis.c, * vax-dis.c, * wasm32-dis.c,
* xtensa-dis.c: Replace bfd_boolean with bool, FALSE with false,
and TRUE with true throughout.
Diffstat (limited to 'opcodes/nds32-dis.c')
-rw-r--r-- | opcodes/nds32-dis.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/opcodes/nds32-dis.c b/opcodes/nds32-dis.c index 25bb475..e501f2a 100644 --- a/opcodes/nds32-dis.c +++ b/opcodes/nds32-dis.c @@ -982,8 +982,8 @@ print_insn_nds32 (bfd_vma pc, disassemble_info *info) int n; int last_symbol_index = -1; bfd_vma addr; - int is_data = FALSE; - bfd_boolean found = FALSE; + int is_data = false; + bool found = false; struct nds32_private_data *private_data; unsigned int size; enum map_type mapping_type = MAP_CODE; @@ -1025,7 +1025,7 @@ print_insn_nds32 (bfd_vma pc, disassemble_info *info) if (get_mapping_symbol_type (info, n, &mapping_type)) { last_symbol_index = n; - found = TRUE; + found = true; } } @@ -1189,21 +1189,21 @@ print_insn_nds32 (bfd_vma pc, disassemble_info *info) /* Ignore disassembling unnecessary name. */ -static bfd_boolean +static bool nds32_symbol_is_valid (asymbol *sym, struct disassemble_info *info ATTRIBUTE_UNUSED) { const char *name; if (sym == NULL) - return FALSE; + return false; name = bfd_asymbol_name (sym); /* Mapping symbol is invalid. */ if (name[0] == '$') - return FALSE; - return TRUE; + return false; + return true; } static void @@ -1286,35 +1286,35 @@ is_mapping_symbol (struct disassemble_info *info, int n, if (name[1] == 'c') { *map_type = MAP_CODE; - return TRUE; + return true; } else if (name[1] == 'd' && name[2] == '0') { *map_type = MAP_DATA0; - return TRUE; + return true; } else if (name[1] == 'd' && name[2] == '1') { *map_type = MAP_DATA1; - return TRUE; + return true; } else if (name[1] == 'd' && name[2] == '2') { *map_type = MAP_DATA2; - return TRUE; + return true; } else if (name[1] == 'd' && name[2] == '3') { *map_type = MAP_DATA3; - return TRUE; + return true; } else if (name[1] == 'd' && name[2] == '4') { *map_type = MAP_DATA4; - return TRUE; + return true; } - return FALSE; + return false; } static int @@ -1324,7 +1324,7 @@ get_mapping_symbol_type (struct disassemble_info *info, int n, /* If the symbol is in a different section, ignore it. */ if (info->section != NULL && info->section != info->symtab[n]->section) - return FALSE; + return false; return is_mapping_symbol (info, n, map_type); } |