aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Threading.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2022-11-23 20:12:16 -0800
committerFangrui Song <i@maskray.me>2022-11-23 20:12:16 -0800
commit93b553e3f2e4f53ce3dda13cd18dbc43643a535b (patch)
tree30cac24eceb7b916f1b003094ed2755d9a44c03b /llvm/lib/Support/Threading.cpp
parent65abca4611256794176b791a1380ad83ccf0741f (diff)
downloadllvm-93b553e3f2e4f53ce3dda13cd18dbc43643a535b.zip
llvm-93b553e3f2e4f53ce3dda13cd18dbc43643a535b.tar.gz
llvm-93b553e3f2e4f53ce3dda13cd18dbc43643a535b.tar.bz2
Revert "Host: Internalize computeHostNumPhysicalCores/computeHostNumHardwareThreads"
This reverts commit 9969ceb36b440eaafa17c486f29a69c7a7da3b3b. On Windows: lld-link: error: undefined symbol: int __cdecl computeHostNumPhysicalCores(void) >>> referenced by LLVMSupport.lib(Support.Host.obj):(int __cdecl llvm::sys::getHostNumPhysicalCores(void))
Diffstat (limited to 'llvm/lib/Support/Threading.cpp')
-rw-r--r--llvm/lib/Support/Threading.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Threading.cpp b/llvm/lib/Support/Threading.cpp
index bd954fd..b14ff95 100644
--- a/llvm/lib/Support/Threading.cpp
+++ b/llvm/lib/Support/Threading.cpp
@@ -47,7 +47,7 @@ unsigned llvm::ThreadPoolStrategy::compute_thread_count() const {
#else
-static int computeHostNumHardwareThreads();
+int computeHostNumHardwareThreads();
unsigned llvm::ThreadPoolStrategy::compute_thread_count() const {
int MaxThreadCount = UseHyperThreads ? computeHostNumHardwareThreads()