summaryrefslogtreecommitdiff
path: root/src/wasm.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-11-03 21:18:56 -0800
committerAlon Zakai <alonzakai@gmail.com>2015-11-03 21:18:56 -0800
commita0de6e95733602f7f246bb537af79e87c4a6070a (patch)
tree91c0882c1ff91dc8e028904197a4a36ec10274cd /src/wasm.h
parent48d593f3ba3505a60a6f37bc244998b8562e6137 (diff)
downloadbinaryen-a0de6e95733602f7f246bb537af79e87c4a6070a.tar.gz
binaryen-a0de6e95733602f7f246bb537af79e87c4a6070a.tar.bz2
binaryen-a0de6e95733602f7f246bb537af79e87c4a6070a.zip
factor out float_
Diffstat (limited to 'src/wasm.h')
-rw-r--r--src/wasm.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/wasm.h b/src/wasm.h
index 7c9e2a6c0..448e4e71b 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -489,14 +489,13 @@ public:
unsigned bytes;
bool signed_;
- bool float_; // XXX remove?
int offset;
unsigned align;
Expression *ptr;
std::ostream& doPrint(std::ostream &o, unsigned indent) {
o << '(';
- prepareColor(o) << printWasmType(getWasmType(bytes, float_)) << ".load";
+ prepareColor(o) << printWasmType(type) << ".load";
if (bytes < 4) {
if (bytes == 1) {
o << '8';
@@ -521,14 +520,13 @@ public:
Store() : Expression(StoreId) {}
unsigned bytes;
- bool float_;
int offset;
unsigned align;
Expression *ptr, *value;
std::ostream& doPrint(std::ostream &o, unsigned indent) {
o << '(';
- prepareColor(o) << printWasmType(getWasmType(bytes, float_)) << ".store";
+ prepareColor(o) << printWasmType(type) << ".store";
if (bytes < 4) {
if (bytes == 1) {
o << '8';