[Lldb-commits] [PATCH] D61779: FuncUnwinders: General clean up and optimization

2019-05-10 Thread Pavel Labath via Phabricator via lldb-commits
labath marked an inline comment as done. labath added inline comments. Comment at: include/lldb/Symbol/FuncUnwinders.h:117 + class LazyPlan { +lldb::UnwindPlanSP m_plan_sp; + clayborg wrote: > clayborg wrote: > > labath wrote: > > > clayborg wrote: > > > > m

[Lldb-commits] [PATCH] D61779: FuncUnwinders: General clean up and optimization

2019-05-10 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added inline comments. Comment at: include/lldb/Symbol/FuncUnwinders.h:117 + class LazyPlan { +lldb::UnwindPlanSP m_plan_sp; + clayborg wrote: > labath wrote: > > clayborg wrote: > > > maybe use: > > > > > > ``` > > > llvm::Optional m_plan_sp; > >

[Lldb-commits] [PATCH] D61779: FuncUnwinders: General clean up and optimization

2019-05-10 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added inline comments. Comment at: include/lldb/Symbol/FuncUnwinders.h:117 + class LazyPlan { +lldb::UnwindPlanSP m_plan_sp; + labath wrote: > clayborg wrote: > > maybe use: > > > > ``` > > llvm::Optional m_plan_sp; > > ``` > > > > Then just check

[Lldb-commits] [PATCH] D61779: FuncUnwinders: General clean up and optimization

2019-05-10 Thread Pavel Labath via Phabricator via lldb-commits
labath marked an inline comment as done. labath added inline comments. Comment at: include/lldb/Symbol/FuncUnwinders.h:117 + class LazyPlan { +lldb::UnwindPlanSP m_plan_sp; + clayborg wrote: > maybe use: > > ``` > llvm::Optional m_plan_sp; > ``` > > Then j

[Lldb-commits] [PATCH] D61779: FuncUnwinders: General clean up and optimization

2019-05-10 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added inline comments. Comment at: include/lldb/Symbol/FuncUnwinders.h:117 + class LazyPlan { +lldb::UnwindPlanSP m_plan_sp; + maybe use: ``` llvm::Optional m_plan_sp; ``` Then just check if it has no value, and if so compute and set it either to

[Lldb-commits] [PATCH] D61779: FuncUnwinders: General clean up and optimization

2019-05-10 Thread Pavel Labath via Phabricator via lldb-commits
labath created this revision. labath added reviewers: jasonmolenda, clayborg. A large chunk of this file was dealing with the caching of unwind plans. In this patch I create a helper class to encapsulate this behavior and leave the functions to deal with the actual work, which is to compute the ac