aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Unix/Threading.inc
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2022-11-23 21:09:44 -0800
committerFangrui Song <i@maskray.me>2022-11-23 21:09:45 -0800
commit875adb400754bb331d3540af67c94577ff58e8c8 (patch)
treeecbc42607652d981ca486f09094a2fa6832f9c1f /llvm/lib/Support/Unix/Threading.inc
parent93b553e3f2e4f53ce3dda13cd18dbc43643a535b (diff)
downloadllvm-875adb400754bb331d3540af67c94577ff58e8c8.zip
llvm-875adb400754bb331d3540af67c94577ff58e8c8.tar.gz
llvm-875adb400754bb331d3540af67c94577ff58e8c8.tar.bz2
Host: Internalize computeHostNumPhysicalCores/computeHostNumHardwareThreads
Windows computeHostNumPhysicalCores is defined by Threading.cpp. Leave it unchanged.
Diffstat (limited to 'llvm/lib/Support/Unix/Threading.inc')
-rw-r--r--llvm/lib/Support/Unix/Threading.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Unix/Threading.inc b/llvm/lib/Support/Unix/Threading.inc
index 99f64b4..6a67401 100644
--- a/llvm/lib/Support/Unix/Threading.inc
+++ b/llvm/lib/Support/Unix/Threading.inc
@@ -290,7 +290,7 @@ SetThreadPriorityResult llvm::set_thread_priority(ThreadPriority Priority) {
#include <thread>
-int computeHostNumHardwareThreads() {
+static int computeHostNumHardwareThreads() {
#if defined(__FreeBSD__)
cpuset_t mask;
CPU_ZERO(&mask);