Skip to content

Commit d14684e

Browse files
committed
replace IsTID with comparison
1 parent 0a333e4 commit d14684e

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

lldb/include/lldb/Target/ThreadPlan.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,6 @@ class ThreadPlan : public std::enable_shared_from_this<ThreadPlan>,
507507
return m_iteration_count;
508508
}
509509

510-
bool IsTID(lldb::tid_t tid) { return tid == m_tid; }
511510
bool HasTID() { return m_tid != LLDB_INVALID_THREAD_ID; }
512511
void ClearTID() { m_tid = LLDB_INVALID_THREAD_ID; }
513512
lldb::tid_t GetTID() { return m_tid; }

lldb/include/lldb/Target/ThreadPlanStack.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class ThreadPlanStackMap {
161161
std::vector<ThreadPlanStack> CleanUp() {
162162
std::vector<lldb::tid_t> invalidated_tids;
163163
for (auto &pair : m_plans_list)
164-
if (!pair.second.IsTID(pair.first))
164+
if (pair.second.GetTID() != pair.first)
165165
invalidated_tids.push_back(pair.first);
166166

167167
std::vector<ThreadPlanStack> detached_stacks;

lldb/source/Target/ThreadPlanStack.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -377,10 +377,6 @@ void ThreadPlanStack::WillResume() {
377377
m_discarded_plans.clear();
378378
}
379379

380-
bool ThreadPlanStack::IsTID(lldb::tid_t tid) {
381-
return GetCurrentPlan()->IsTID(tid);
382-
}
383-
384380
lldb::tid_t ThreadPlanStack::GetTID() { return GetCurrentPlan()->GetTID(); }
385381

386382
void ThreadPlanStack::SetTID(lldb::tid_t tid) {

0 commit comments

Comments
 (0)