From: David Neto Date: Thu, 5 Nov 2015 22:37:48 +0000 (-0500) Subject: Remove TODO: Strings are always little-endian X-Git-Tag: upstream/2018.6~1481 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=97e4a5d83d6b5d067c840e4a1682c0cf5f06668b;p=platform%2Fupstream%2FSPIRV-Tools.git Remove TODO: Strings are always little-endian SPIR-V strings are UTF-8 encoded, and always byte-addressed. --- diff --git a/source/disassemble.cpp b/source/disassemble.cpp index accaaf1..e036982 100644 --- a/source/disassemble.cpp +++ b/source/disassemble.cpp @@ -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(&words_[index])); stream_ << "\""; SetGreen();