Remove TODO: Strings are always little-endian

SPIR-V strings are UTF-8 encoded, and always byte-addressed.
This commit is contained in:
David Neto 2015-11-05 17:37:48 -05:00
parent 0ca6b59bfd
commit 97e4a5d83d

View File

@ -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();