disassembler: Deduplicate SignStr

Also just makes it return a character, rather than a pointer to a
string.
This commit is contained in:
Lioncash 2016-08-23 10:50:06 -04:00 committed by MerryMage
parent 8bed891011
commit 867d345fdc
3 changed files with 10 additions and 15 deletions

View file

@ -21,5 +21,10 @@ std::string StringFromFormat(
#endif
;
template <typename T>
constexpr char SignToChar(T value) {
return value >= 0 ? '+' : '-';
}
} // namespace Common
} // namespace Dynarmic