From: QingShan Zhang Date: Wed, 6 Mar 2019 02:39:18 +0000 (+0000) Subject: [NFC] Declare the member data of class PostGenericScheduler as "protected" instead... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3d715e2e934b66589aacc485d1335bf4d141ed06;p=llvm [NFC] Declare the member data of class PostGenericScheduler as "protected" instead of "private" Some target might try to subclass the PostGenericScheduler to custom the scheduling strategy. We need to declare the member data of PostGenericScheduler as "protected", which acts the same as "GenericScheduler". Differential Revision: https://reviews.llvm.org/D58949 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355475 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/MachineScheduler.h b/include/llvm/CodeGen/MachineScheduler.h index 70579987702..692335fc7a6 100644 --- a/include/llvm/CodeGen/MachineScheduler.h +++ b/include/llvm/CodeGen/MachineScheduler.h @@ -1014,6 +1014,7 @@ protected: /// Callbacks from ScheduleDAGMI: /// initPolicy -> initialize(DAG) -> registerRoots -> pickNode ... class PostGenericScheduler : public GenericSchedulerBase { +protected: ScheduleDAGMI *DAG; SchedBoundary Top; SmallVector BotRoots;