summaryrefslogtreecommitdiff
path: root/src/jit/phase.h
diff options
context:
space:
mode:
authorPat Gavlin <pagavlin@microsoft.com>2016-06-09 15:10:21 -0700
committerPat Gavlin <pagavlin@microsoft.com>2016-06-09 15:10:21 -0700
commit5f98c72d82c431292e50d589e95f62b922a27ae4 (patch)
tree8b523ce90344954befda770b8492e22a90946720 /src/jit/phase.h
parent8f6dce45d4a9bda2e7040e2c60f54c9e791e3bc6 (diff)
downloadcoreclr-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.h5
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();