Skip to content

Commit eb08ecd

Browse files
kazutakahiratagithub-actions[bot]
authored andcommitted
Automerge: [Support] Remove get getThreadCount (NFC) (#150786)
getThreadCount has been deprecated for more than a year since: commit 744616b Author: Mehdi Amini <[email protected]> Date: Mon Feb 19 18:07:12 2024 -0800 This patch removes it.
2 parents 49ba720 + 4cb5a34 commit eb08ecd

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

llvm/include/llvm/Support/ThreadPool.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,6 @@ class LLVM_ABI StdThreadPool : public ThreadPoolInterface {
149149
/// number of threads!
150150
unsigned getMaxConcurrency() const override { return MaxThreadCount; }
151151

152-
// TODO: Remove, misleading legacy name warning!
153-
LLVM_DEPRECATED("Use getMaxConcurrency instead", "getMaxConcurrency")
154-
unsigned getThreadCount() const { return MaxThreadCount; }
155-
156152
/// Returns true if the current thread is a worker thread of this thread pool.
157153
bool isWorkerThread() const;
158154

@@ -233,10 +229,6 @@ class LLVM_ABI SingleThreadExecutor : public ThreadPoolInterface {
233229
/// Returns always 1: there is no concurrency.
234230
unsigned getMaxConcurrency() const override { return 1; }
235231

236-
// TODO: Remove, misleading legacy name warning!
237-
LLVM_DEPRECATED("Use getMaxConcurrency instead", "getMaxConcurrency")
238-
unsigned getThreadCount() const { return 1; }
239-
240232
/// Returns true if the current thread is a worker thread of this thread pool.
241233
bool isWorkerThread() const;
242234

0 commit comments

Comments
 (0)