summaryrefslogtreecommitdiff
path: root/src/wasm-binary.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-01-13 18:29:21 -0800
committerAlon Zakai <alonzakai@gmail.com>2016-01-13 18:29:21 -0800
commit477e456f1ac5e7572f280993bd6eda9b4c7b0db5 (patch)
treeff7008936b584a195886588ec40639fdf1a37499 /src/wasm-binary.h
parent503e6779973e95417de1729c726e1fbedd291947 (diff)
downloadbinaryen-477e456f1ac5e7572f280993bd6eda9b4c7b0db5.tar.gz
binaryen-477e456f1ac5e7572f280993bd6eda9b4c7b0db5.tar.bz2
binaryen-477e456f1ac5e7572f280993bd6eda9b4c7b0db5.zip
more debugging
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r--src/wasm-binary.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h
index 09291157e..47b84dec1 100644
--- a/src/wasm-binary.h
+++ b/src/wasm-binary.h
@@ -454,6 +454,7 @@ public:
name = function->name;
type = function->type;
}
+ if (debug) std::cerr << "writing" << name << std::endl;
o << getFunctionTypeIndex(type);
o << int8_t(BinaryConsts::Named |
(BinaryConsts::Import * !!import) |
@@ -526,6 +527,7 @@ public:
}
void emitString(const char *str) {
+ if (debug) std::cerr << "emitString " << str << std::endl;
emitBuffer(str, strlen(str) + 1);
}
@@ -1016,6 +1018,7 @@ public:
bool locals = data & BinaryConsts::Locals;
bool export_ = data & BinaryConsts::Export;
Name name = getString();
+ if (debug) std::cerr << "reading" << name << std::endl;
mappedFunctions.push_back(name);
if (import) {
auto imp = allocator.alloc<Import>();