diff options
author | Mehdi Amini <joker.eph@gmail.com> | 2024-02-19 18:07:12 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-19 18:07:12 -0800 |
commit | 744616b3aebd008a5ad0e9de9f82f5e284440ab1 (patch) | |
tree | e7712d6eac6ee52ee71745ff369c878a14dc0964 /llvm/lib/LTO/LTO.cpp | |
parent | 71e0623110b674765fb9349f449279faa7361e3d (diff) | |
download | llvm-744616b3aebd008a5ad0e9de9f82f5e284440ab1.zip llvm-744616b3aebd008a5ad0e9de9f82f5e284440ab1.tar.gz llvm-744616b3aebd008a5ad0e9de9f82f5e284440ab1.tar.bz2 |
Rename `ThreadPool::getThreadCount()` to `getMaxConcurrency()` (NFC) (#82296)
This is addressing a long-time TODO to rename this misleading API. The
old one is preserved for now but marked deprecated.
Diffstat (limited to 'llvm/lib/LTO/LTO.cpp')
-rw-r--r-- | llvm/lib/LTO/LTO.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp index b38c568..b506258 100644 --- a/llvm/lib/LTO/LTO.cpp +++ b/llvm/lib/LTO/LTO.cpp @@ -1537,7 +1537,7 @@ public: } unsigned getThreadCount() override { - return BackendThreadPool.getThreadCount(); + return BackendThreadPool.getMaxConcurrency(); } }; } // end anonymous namespace |