[llvm] 4137ab6 - [Support] Define llvm::parallel::strategy for -DLLVM_ENABLE_THREADS=off builds after D76885
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 8 10:51:29 PDT 2020
Author: Fangrui Song
Date: 2020-07-08T10:51:20-07:00
New Revision: 4137ab62cff268ed0de51ba2283143a6a992a932
URL: https://github.com/llvm/llvm-project/commit/4137ab62cff268ed0de51ba2283143a6a992a932
DIFF: https://github.com/llvm/llvm-project/commit/4137ab62cff268ed0de51ba2283143a6a992a932.diff
LOG: [Support] Define llvm::parallel::strategy for -DLLVM_ENABLE_THREADS=off builds after D76885
Added:
Modified:
llvm/lib/Support/Parallel.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Support/Parallel.cpp b/llvm/lib/Support/Parallel.cpp
index 7f6ce82763d6..9a2e1003da5a 100644
--- a/llvm/lib/Support/Parallel.cpp
+++ b/llvm/lib/Support/Parallel.cpp
@@ -9,9 +9,6 @@
#include "llvm/Support/Parallel.h"
#include "llvm/Config/llvm-config.h"
#include "llvm/Support/ManagedStatic.h"
-
-#if LLVM_ENABLE_THREADS
-
#include "llvm/Support/Threading.h"
#include <atomic>
@@ -22,6 +19,8 @@
llvm::ThreadPoolStrategy llvm::parallel::strategy;
+#if LLVM_ENABLE_THREADS
+
namespace llvm {
namespace parallel {
namespace detail {
More information about the llvm-commits
mailing list