summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-12-07 17:38:21 -0800
committerAlon Zakai <alonzakai@gmail.com>2015-12-07 17:38:21 -0800
commit30212c13effee262b1810babcbc7d7e12d8fd003 (patch)
treeb07c2ab830919162b688b165a40932b6dae3d630
parent321f427c789895b8c13e9aa3bf719bf2a8ebd609 (diff)
downloadbinaryen-30212c13effee262b1810babcbc7d7e12d8fd003.tar.gz
binaryen-30212c13effee262b1810babcbc7d7e12d8fd003.tar.bz2
binaryen-30212c13effee262b1810babcbc7d7e12d8fd003.zip
remove old code
-rw-r--r--src/wasm2asm.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/wasm2asm.h b/src/wasm2asm.h
index 9c3a37ca3..1f644c69c 100644
--- a/src/wasm2asm.h
+++ b/src/wasm2asm.h
@@ -146,13 +146,6 @@ public:
return curr && willBeStatement.find(curr) != willBeStatement.end();
}
- void setBreakedWithValue(Name name) { // XXX needed? maybe we should just fill breakResults unconditionally?
- breakedWithValue.insert(name);
- }
- bool isBreakedWithValue(Name name) {
- return breakedWithValue.find(name) != breakedWithValue.end();
- }
-
size_t getTableSize() {
return tableSize;
}
@@ -166,9 +159,6 @@ private:
// Expressions that will be a statement.
std::set<Expression*> willBeStatement;
- // Label names to which we break with a value aka spooky-return-at-a-distance
- std::set<Name> breakedWithValue;
-
// All our function tables have the same size TODO: optimize?
size_t tableSize;
@@ -399,10 +389,6 @@ void Wasm2AsmBuilder::scanFunctionBody(Expression* curr) {
parent->setStatement(curr);
}
void visitBreak(Break *curr) override {
- if (curr->value) {
- // spooky return-at-a-distance
- parent->setBreakedWithValue(curr->name);
- }
parent->setStatement(curr);
}
void visitSwitch(Switch *curr) override {