mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-01 15:21:00 +00:00
Fix endianness issue on BE machines introduced by r261907
llvm-svn: 261918
This commit is contained in:
parent
9eac7219b8
commit
afbfbdc65e
@ -27,9 +27,10 @@ const std::string to_string(uint64_t Value) {
|
||||
}
|
||||
|
||||
const std::string to_hexString(const format_object_base &obj) {
|
||||
char number[20] = {'0'};
|
||||
obj.print(number, 20);
|
||||
return std::string(number);
|
||||
std::string number;
|
||||
llvm::raw_string_ostream stream(number);
|
||||
stream << obj;
|
||||
return stream.str();
|
||||
}
|
||||
|
||||
void StreamWriter::printBinaryImpl(StringRef Label, StringRef Str,
|
||||
|
Loading…
Reference in New Issue
Block a user