aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Windows/Threading.inc
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Support/Windows/Threading.inc')
-rw-r--r--llvm/lib/Support/Windows/Threading.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/Windows/Threading.inc b/llvm/lib/Support/Windows/Threading.inc
index 11f3481..5b86400 100644
--- a/llvm/lib/Support/Windows/Threading.inc
+++ b/llvm/lib/Support/Windows/Threading.inc
@@ -239,7 +239,7 @@ static unsigned aggregate(R &&Range, UnaryPredicate P) {
}
// for sys::getHostNumPhysicalCores
-int computeHostNumPhysicalCores() {
+static int computeHostNumPhysicalCores() {
static unsigned Cores =
aggregate(getProcessorGroups(), [](const ProcessorGroup &G) {
return G.UsableThreads / G.ThreadsPerCore;
@@ -247,7 +247,7 @@ int computeHostNumPhysicalCores() {
return Cores;
}
-int computeHostNumHardwareThreads() {
+static int computeHostNumHardwareThreads() {
static unsigned Threads =
aggregate(getProcessorGroups(),
[](const ProcessorGroup &G) { return G.UsableThreads; });