summaryrefslogtreecommitdiff
path: root/src/s2wasm.h
diff options
context:
space:
mode:
authorJF Bastien <jfb@chromium.org>2015-12-23 11:31:26 -0800
committerJF Bastien <jfb@chromium.org>2015-12-23 11:31:26 -0800
commitcb256d096ff2c6b53bb8e0175920e1c9734c476b (patch)
tree4d39eabb90aabf09eaeba4d00c8a9395fd467c98 /src/s2wasm.h
parent3d35e0ad734716d1f7c2bb123d7d6150d6fadbac (diff)
downloadbinaryen-cb256d096ff2c6b53bb8e0175920e1c9734c476b.tar.gz
binaryen-cb256d096ff2c6b53bb8e0175920e1c9734c476b.tar.bz2
binaryen-cb256d096ff2c6b53bb8e0175920e1c9734c476b.zip
Output the symbol name.
Diffstat (limited to 'src/s2wasm.h')
-rw-r--r--src/s2wasm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/s2wasm.h b/src/s2wasm.h
index 60aedccf7..b732464d9 100644
--- a/src/s2wasm.h
+++ b/src/s2wasm.h
@@ -963,6 +963,7 @@ private:
size_t offset = triple.offset;
const auto &symbolAddress = staticAddresses.find(name);
if (symbolAddress == staticAddresses.end()) {
+ std::cerr << "Unknown symbol: " << name << '\n';
abort_on("Unknown symbol");
}
curr->value = Literal(symbolAddress->second + offset);