diff options
author | 2022-01-10 09:31:57 +0000 | |
---|---|---|
committer | 2022-01-10 15:18:43 +0000 | |
commit | 22df3e0b8674d32d493fb499cae750f57b2fa5d2 (patch) | |
tree | e78aa8031c77ad8a381ab8285b570d5ceb4d94d9 /compiler/optimizing/nodes.cc | |
parent | 7156ea283a43a64fed3b38004ee38c86cfcf7817 (diff) |
Remove operator<< from HGraph.
It needs access to a code generator.
Test: observe a bogus graph at the point of register allocator, and see
that the Dump method crashes.
Change-Id: I09a847246428fd3bd0938f9f457773c465da253d
Diffstat (limited to 'compiler/optimizing/nodes.cc')
-rw-r--r-- | compiler/optimizing/nodes.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/optimizing/nodes.cc b/compiler/optimizing/nodes.cc index 24786931f2..00bfc92c2f 100644 --- a/compiler/optimizing/nodes.cc +++ b/compiler/optimizing/nodes.cc @@ -2014,8 +2014,9 @@ std::ostream& operator<<(std::ostream& os, const HUseList<HEnvironment*>& lst) { } std::ostream& HGraph::Dump(std::ostream& os, + CodeGenerator* codegen, std::optional<std::reference_wrapper<const BlockNamer>> namer) { - HGraphVisualizer vis(&os, this, nullptr, namer); + HGraphVisualizer vis(&os, this, codegen, namer); vis.DumpGraphDebug(); return os; } |