Remove TODO: Strings are always little-endian
authorDavid Neto <dneto@google.com>
Thu, 5 Nov 2015 22:37:48 +0000 (17:37 -0500)
committerDavid Neto <dneto@google.com>
Tue, 10 Nov 2015 20:57:42 +0000 (15:57 -0500)
SPIR-V strings are UTF-8 encoded, and always byte-addressed.

source/disassemble.cpp

index accaaf1..e036982 100644 (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();