Make Phase::{Pre,Do,Post}Phase protected.
authorPat Gavlin <pagavlin@microsoft.com>
Thu, 9 Jun 2016 19:04:22 +0000 (12:04 -0700)
committerPat Gavlin <pagavlin@microsoft.com>
Thu, 9 Jun 2016 19:05:24 +0000 (12:05 -0700)
These methods are implementation details of a phase and should not be a part
of its public interface.

Commit migrated from https://github.com/dotnet/coreclr/commit/8f6dce45d4a9bda2e7040e2c60f54c9e791e3bc6

src/coreclr/src/jit/phase.h

index 5991084..f78138e 100644 (file)
@@ -14,11 +14,12 @@ public:
           Phases _phase=PHASE_NUMBER_OF) 
         : comp(_comp), name(_name), phase(_phase) {}
     virtual void Run();
+
+protected:
     virtual void PrePhase();
     virtual void DoPhase() = 0;
     virtual void PostPhase();
 
-protected:
     Compiler *comp;
     const char *name;
     Phases phase;