diff options
author | Alon Zakai <alonzakai@gmail.com> | 2018-02-02 18:47:10 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-02 18:47:10 -0800 |
commit | 6b05f000e8b9249afd0838774b6bdaf64fcaf90a (patch) | |
tree | ac9c331c10c72da23429dcd64a47b47bc40aa34b /src/asm_v_wasm.h | |
parent | c81857a3a7708738b20bb28a320fc971e74626a7 (diff) | |
download | binaryen-6b05f000e8b9249afd0838774b6bdaf64fcaf90a.tar.gz binaryen-6b05f000e8b9249afd0838774b6bdaf64fcaf90a.tar.bz2 binaryen-6b05f000e8b9249afd0838774b6bdaf64fcaf90a.zip |
Rename WasmType => Type (#1398)
* rename WasmType to Type. it's in the wasm:: namespace anyhow, and without Wasm- it fits in better alongside Index, Address, Expression, Module, etc.
Diffstat (limited to 'src/asm_v_wasm.h')
-rw-r--r-- | src/asm_v_wasm.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/asm_v_wasm.h b/src/asm_v_wasm.h index d42a1082a..c79c73674 100644 --- a/src/asm_v_wasm.h +++ b/src/asm_v_wasm.h @@ -23,11 +23,11 @@ namespace wasm { -WasmType asmToWasmType(AsmType asmType); +Type asmToWasmType(AsmType asmType); -AsmType wasmToAsmType(WasmType type); +AsmType wasmToAsmType(Type type); -char getSig(WasmType type); +char getSig(Type type); std::string getSig(const FunctionType *type); @@ -45,7 +45,7 @@ std::string getSig(T *call) { } template<typename ListType> -std::string getSig(WasmType result, const ListType& operands) { +std::string getSig(Type result, const ListType& operands) { std::string ret; ret += getSig(result); for (auto operand : operands) { @@ -55,7 +55,7 @@ std::string getSig(WasmType result, const ListType& operands) { } template<typename ListType> -std::string getSigFromStructs(WasmType result, const ListType& operands) { +std::string getSigFromStructs(Type result, const ListType& operands) { std::string ret; ret += getSig(result); for (auto operand : operands) { @@ -64,7 +64,7 @@ std::string getSigFromStructs(WasmType result, const ListType& operands) { return ret; } -WasmType sigToWasmType(char sig); +Type sigToType(char sig); FunctionType* sigToFunctionType(std::string sig); |