JSSpecCompiler: Add --dump-cfg option

This commit is contained in:
Dan Klishch 2023-10-01 23:30:43 -04:00 committed by Andrew Kaster
parent ff44aea917
commit ce6b987330
Notes: sideshowbarker 2024-07-17 01:55:29 +09:00
4 changed files with 53 additions and 0 deletions

View file

@ -39,3 +39,12 @@ public:
};
}
namespace AK {
template<>
struct Formatter<JSSpecCompiler::ControlFlowGraph> : Formatter<StringView> {
ErrorOr<void> format(FormatBuilder& builder, JSSpecCompiler::ControlFlowGraph const& control_flow_graph);
};
}