1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Simplify boolean expressions in tools/llvm-objdump.

Patch by Richard.

llvm-svn: 251215
This commit is contained in:
Rafael Espindola 2015-10-24 23:19:10 +00:00
parent 4f88a5b854
commit 1149216eae

View File

@ -4351,7 +4351,7 @@ static bool print_class_ro64_t(uint64_t p, struct DisassembleInfo *info,
if (cro.baseProperties + n_value != 0)
print_objc_property_list64(cro.baseProperties + n_value, info);
is_meta_class = (cro.flags & RO_META) ? true : false;
is_meta_class = (cro.flags & RO_META) != 0;
return true;
}
@ -4415,7 +4415,7 @@ static bool print_class_ro32_t(uint32_t p, struct DisassembleInfo *info,
<< format("0x%" PRIx32, cro.baseProperties) << "\n";
if (cro.baseProperties != 0)
print_objc_property_list32(cro.baseProperties, info);
is_meta_class = (cro.flags & RO_META) ? true : false;
is_meta_class = (cro.flags & RO_META) != 0;
return true;
}