Rework how master plans declare themselves. Also make "PlanIsBasePlan" not rely only on this being the bottom plan in the stack, but allow the plan to declare itself as such.

llvm-svn: 154351
This commit is contained in:
Jim Ingham
2012-04-09 22:37:39 +00:00
parent 383fda29be
commit cf274f910e
12 changed files with 55 additions and 32 deletions

View File

@@ -36,7 +36,8 @@ ThreadPlan::ThreadPlan(ThreadPlanKind kind, const char *name, Thread &thread, Vo
m_plan_complete_mutex (Mutex::eMutexTypeRecursive),
m_plan_complete (false),
m_plan_private (false),
m_okay_to_discard (false)
m_okay_to_discard (false),
m_is_master_plan (false)
{
SetID (GetNextID());
}