[Lldb-commits] [PATCH] D95411: [lldb] Remove unused ThreadPlanStack::GetStackOfKind (NFC)
Dave Lee via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Jan 26 09:22:39 PST 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG90b8ae016bca: [lldb] Remove unused ThreadPlanStack::GetStackOfKind (NFC) (authored by kastiglione).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D95411/new/
https://reviews.llvm.org/D95411
Files:
lldb/include/lldb/Target/ThreadPlanStack.h
lldb/source/Target/ThreadPlanStack.cpp
Index: lldb/source/Target/ThreadPlanStack.cpp
===================================================================
--- lldb/source/Target/ThreadPlanStack.cpp
+++ lldb/source/Target/ThreadPlanStack.cpp
@@ -379,19 +379,6 @@
m_discarded_plans.clear();
}
-const ThreadPlanStack::PlanStack &
-ThreadPlanStack::GetStackOfKind(ThreadPlanStack::StackKind kind) const {
- switch (kind) {
- case ePlans:
- return m_plans;
- case eCompletedPlans:
- return m_completed_plans;
- case eDiscardedPlans:
- return m_discarded_plans;
- }
- llvm_unreachable("Invalid StackKind value");
-}
-
void ThreadPlanStackMap::Update(ThreadList ¤t_threads,
bool delete_missing,
bool check_for_new) {
Index: lldb/include/lldb/Target/ThreadPlanStack.h
===================================================================
--- lldb/include/lldb/Target/ThreadPlanStack.h
+++ lldb/include/lldb/Target/ThreadPlanStack.h
@@ -35,8 +35,6 @@
ThreadPlanStack(const Thread &thread, bool make_empty = false);
~ThreadPlanStack() {}
- enum StackKind { ePlans, eCompletedPlans, eDiscardedPlans };
-
using PlanStack = std::vector<lldb::ThreadPlanSP>;
void DumpThreadPlans(Stream &s, lldb::DescriptionLevel desc_level,
@@ -102,8 +100,6 @@
void ClearThreadCache();
private:
- const PlanStack &GetStackOfKind(ThreadPlanStack::StackKind kind) const;
-
void PrintOneStack(Stream &s, llvm::StringRef stack_name,
const PlanStack &stack, lldb::DescriptionLevel desc_level,
bool include_internal) const;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95411.319323.patch
Type: text/x-patch
Size: 1610 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20210126/a3933818/attachment.bin>
More information about the lldb-commits
mailing list