summaryrefslogtreecommitdiff
path: root/src/wasm-binary.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2018-02-02 18:47:10 -0800
committerGitHub <noreply@github.com>2018-02-02 18:47:10 -0800
commit6b05f000e8b9249afd0838774b6bdaf64fcaf90a (patch)
treeac9c331c10c72da23429dcd64a47b47bc40aa34b /src/wasm-binary.h
parentc81857a3a7708738b20bb28a320fc971e74626a7 (diff)
downloadbinaryen-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/wasm-binary.h')
-rw-r--r--src/wasm-binary.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h
index 2ac0ef2d0..cc98ebf8b 100644
--- a/src/wasm-binary.h
+++ b/src/wasm-binary.h
@@ -638,7 +638,7 @@ enum MemoryFlags {
} // namespace BinaryConsts
-inline S32LEB binaryWasmType(WasmType type) {
+inline S32LEB binaryType(Type type) {
int ret;
switch (type) {
// None only used for block signatures. TODO: Separate out?
@@ -704,7 +704,7 @@ public:
void writeImports();
std::map<Index, size_t> mappedLocals; // local index => index in compact form of [all int32s][all int64s]etc
- std::map<WasmType, size_t> numLocalsByType; // type => number of locals of that type in the compact form
+ std::map<Type, size_t> numLocalsByType; // type => number of locals of that type in the compact form
void mapLocals(Function* function);
void writeFunctionSignatures();
@@ -839,7 +839,7 @@ public:
uint64_t getU64LEB();
int32_t getS32LEB();
int64_t getS64LEB();
- WasmType getWasmType();
+ Type getType();
Name getString();
Name getInlineString();
void verifyInt8(int8_t x);
@@ -934,7 +934,7 @@ public:
void visitBlock(Block *curr);
// Gets a block of expressions. If it's just one, return that singleton.
- Expression* getBlockOrSingleton(WasmType type);
+ Expression* getBlockOrSingleton(Type type);
void visitIf(If *curr);
void visitLoop(Loop *curr);