From 55f33b55daa965672d2b8aca98ce1570e3fb52c0 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 14 May 2024 10:49:39 -0700 Subject: [NFC] Add printing for EffectAnalyzer (#6586) With this you can do std::cout << effects and get something like EffectAnalyzer { writesMemory hasSideEffects } --- src/ir/effects.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ir/effects.h') diff --git a/src/ir/effects.h b/src/ir/effects.h index ef9aceb37..b1b4c7053 100644 --- a/src/ir/effects.h +++ b/src/ir/effects.h @@ -1193,4 +1193,8 @@ public: } // namespace wasm +namespace std { +std::ostream& operator<<(std::ostream& o, wasm::EffectAnalyzer& effects); +} // namespace std + #endif // wasm_ir_effects_h -- cgit v1.2.3