Index: src/wasm/wasm-opcodes.h |
diff --git a/src/wasm/wasm-opcodes.h b/src/wasm/wasm-opcodes.h |
index 1a3aa9cf2a3610b69ed358c957e14a2dabece652..7b5ed9cbf4d460a2ef70f9be4cfdd3665db32c22 100644 |
--- a/src/wasm/wasm-opcodes.h |
+++ b/src/wasm/wasm-opcodes.h |
@@ -52,6 +52,10 @@ std::ostream& operator<<(std::ostream& os, const FunctionSig& function); |
struct WasmName { |
const char* name; |
uint32_t length; |
+ // TODO(clemensh): Remove whole WasmName, replace by Vector<const char> |
+ inline Vector<const char> toVec() const { |
titzer
2016/04/26 12:45:57
We don't need this little helper function. Either
Clemens Hammacher
2016/04/26 12:58:52
Sorry, forgot to mention that. The TODO will be ha
|
+ return Vector<const char>(name, length); |
+ } |
}; |
// TODO(titzer): Renumber all the opcodes to fill in holes. |