summaryrefslogtreecommitdiff
path: root/src/passes/Print.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r--src/passes/Print.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp
index b1082dcc1..dfdfa46d4 100644
--- a/src/passes/Print.cpp
+++ b/src/passes/Print.cpp
@@ -725,6 +725,9 @@ struct PrintSExpression : public Visitor<PrintSExpression> {
}
o << " (; " << functionIndexes[curr->name] << " ;)";
}
+ if (curr->stackIR && !minify) {
+ o << " (; has Stack IR ;)";
+ }
if (curr->type.is()) {
o << maybeSpace << "(type " << curr->type << ')';
}
@@ -888,6 +891,8 @@ public:
Printer() : o(std::cout) {}
Printer(std::ostream* o) : o(*o) {}
+ bool modifiesBinaryenIR() override { return false; }
+
void run(PassRunner* runner, Module* module) override {
PrintSExpression print(o);
print.visitModule(module);