Migrate EliminateUnreachableCode into Transform.

Change-Id: Ib32895a78a8de4c49ce1208f0c1b9b111d092b42
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/456643
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
diff --git a/src/sksl/SkSLCompiler.cpp b/src/sksl/SkSLCompiler.cpp
index bf028e9..ed96215 100644
--- a/src/sksl/SkSLCompiler.cpp
+++ b/src/sksl/SkSLCompiler.cpp
@@ -36,6 +36,7 @@
 #include "src/sksl/ir/SkSLUnresolvedFunction.h"
 #include "src/sksl/ir/SkSLVarDeclarations.h"
 #include "src/sksl/transform/SkSLProgramWriter.h"
+#include "src/sksl/transform/SkSLTransform.h"
 #include "src/utils/SkBitSet.h"
 
 #include <fstream>
@@ -604,7 +605,7 @@
 void Compiler::removeUnreachableCode(Program& program, ProgramUsage* usage) {
     for (std::unique_ptr<ProgramElement>& pe : program.ownedElements()) {
         if (pe->is<FunctionDefinition>()) {
-            Analysis::EliminateUnreachableCode(pe->as<FunctionDefinition>().body(), usage);
+            Transform::EliminateUnreachableCode(pe->as<FunctionDefinition>().body(), usage);
         }
     }
 }