diff options
author | Pat Gavlin <pagavlin@microsoft.com> | 2016-06-09 15:10:21 -0700 |
---|---|---|
committer | Pat Gavlin <pagavlin@microsoft.com> | 2016-06-09 15:10:21 -0700 |
commit | 5f98c72d82c431292e50d589e95f62b922a27ae4 (patch) | |
tree | 8b523ce90344954befda770b8492e22a90946720 /src/jit/phase.h | |
parent | 8f6dce45d4a9bda2e7040e2c60f54c9e791e3bc6 (diff) | |
download | coreclr-5f98c72d82c431292e50d589e95f62b922a27ae4.tar.gz coreclr-5f98c72d82c431292e50d589e95f62b922a27ae4.tar.bz2 coreclr-5f98c72d82c431292e50d589e95f62b922a27ae4.zip |
Make Phase::Phase protected.
Like Phase::{Pre,Do,Post}Phase, this is an implementation detail of the top type
and should only be exposed to subclasses.
Diffstat (limited to 'src/jit/phase.h')
-rw-r--r-- | src/jit/phase.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/jit/phase.h b/src/jit/phase.h index f78138ee39..791658b8a5 100644 --- a/src/jit/phase.h +++ b/src/jit/phase.h @@ -9,13 +9,14 @@ class Phase { public: + virtual void Run(); + +protected: Phase(Compiler *_comp, const char *_name, 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(); |