[llvm] 4cb5a34 - [Support] Remove get getThreadCount (NFC) (#150786)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 26 18:15:34 PDT 2025
Author: Kazu Hirata
Date: 2025-07-26T18:15:31-07:00
New Revision: 4cb5a343b216d82f49c6affa8b17b696872718b5
URL: https://github.com/llvm/llvm-project/commit/4cb5a343b216d82f49c6affa8b17b696872718b5
DIFF: https://github.com/llvm/llvm-project/commit/4cb5a343b216d82f49c6affa8b17b696872718b5.diff
LOG: [Support] Remove get getThreadCount (NFC) (#150786)
getThreadCount has been deprecated for more than a year since:
commit 744616b3aebd008a5ad0e9de9f82f5e284440ab1
Author: Mehdi Amini <joker.eph at gmail.com>
Date: Mon Feb 19 18:07:12 2024 -0800
This patch removes it.
Added:
Modified:
llvm/include/llvm/Support/ThreadPool.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Support/ThreadPool.h b/llvm/include/llvm/Support/ThreadPool.h
index 9272760fc140a..c26681c25c8f6 100644
--- a/llvm/include/llvm/Support/ThreadPool.h
+++ b/llvm/include/llvm/Support/ThreadPool.h
@@ -149,10 +149,6 @@ class LLVM_ABI StdThreadPool : public ThreadPoolInterface {
/// number of threads!
unsigned getMaxConcurrency() const override { return MaxThreadCount; }
- // TODO: Remove, misleading legacy name warning!
- LLVM_DEPRECATED("Use getMaxConcurrency instead", "getMaxConcurrency")
- unsigned getThreadCount() const { return MaxThreadCount; }
-
/// Returns true if the current thread is a worker thread of this thread pool.
bool isWorkerThread() const;
@@ -233,10 +229,6 @@ class LLVM_ABI SingleThreadExecutor : public ThreadPoolInterface {
/// Returns always 1: there is no concurrency.
unsigned getMaxConcurrency() const override { return 1; }
- // TODO: Remove, misleading legacy name warning!
- LLVM_DEPRECATED("Use getMaxConcurrency instead", "getMaxConcurrency")
- unsigned getThreadCount() const { return 1; }
-
/// Returns true if the current thread is a worker thread of this thread pool.
bool isWorkerThread() const;
More information about the llvm-commits
mailing list