mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-11-26 21:30:07 +00:00
Remove TODO: Strings are always little-endian
SPIR-V strings are UTF-8 encoded, and always byte-addressed.
This commit is contained in:
parent
0ca6b59bfd
commit
97e4a5d83d
@ -204,8 +204,7 @@ void Disassembler::EmitOperand(const spv_parsed_instruction_t& inst,
|
||||
}
|
||||
} break;
|
||||
case SPV_OPERAND_TYPE_LITERAL_STRING: {
|
||||
// Assumes little-endian.
|
||||
// TODO(dneto): Make and use spvFixString(&words_[index], endian_);
|
||||
// Strings are always little-endian.
|
||||
const std::string string(reinterpret_cast<const char*>(&words_[index]));
|
||||
stream_ << "\"";
|
||||
SetGreen();
|
||||
|
Loading…
Reference in New Issue
Block a user