disassembler_thumb: fix formatting issues with fmt 8.1.x ...

... fmt 8.1.0 added more formatting checks and Cond can't be formatted
directly now
This commit is contained in:
liushuyu 2022-01-05 21:49:22 -07:00
parent ad5465d6ce
commit 40afbe1927
No known key found for this signature in database
GPG key ID: 23D1CE4534419437

View file

@ -285,7 +285,7 @@ public:
// Sanity note: Here imm8.Bit<0>() is guaranteed to be == 1. (imm8 can never be 0bxxxx0000) // Sanity note: Here imm8.Bit<0>() is guaranteed to be == 1. (imm8 can never be 0bxxxx0000)
return std::make_tuple(imm8.Bit<3>() == firstcond0 ? "t" : "e", imm8.Bit<2>() == firstcond0 ? "t" : "e", imm8.Bit<1>() == firstcond0 ? "t" : "e"); return std::make_tuple(imm8.Bit<3>() == firstcond0 ? "t" : "e", imm8.Bit<2>() == firstcond0 ? "t" : "e", imm8.Bit<1>() == firstcond0 ? "t" : "e");
}(); }();
return fmt::format("it{}{}{} {}", x, y, z, firstcond); return fmt::format("it{}{}{} {}", x, y, z, CondToString(firstcond));
} }
std::string thumb16_SXTH(Reg m, Reg d) { std::string thumb16_SXTH(Reg m, Reg d) {