[llvm] 9507bac - [ORC] Use a unique_function rather than std::function for dispatchTask.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Mon May 10 13:05:02 PDT 2021
Author: Lang Hames
Date: 2021-05-10T13:04:33-07:00
New Revision: 9507bace6c122898ac1e7c01bbdcf3c448214c81
URL: https://github.com/llvm/llvm-project/commit/9507bace6c122898ac1e7c01bbdcf3c448214c81
DIFF: https://github.com/llvm/llvm-project/commit/9507bace6c122898ac1e7c01bbdcf3c448214c81.diff
LOG: [ORC] Use a unique_function rather than std::function for dispatchTask.
Added:
Modified:
llvm/include/llvm/ExecutionEngine/Orc/Core.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/Core.h b/llvm/include/llvm/ExecutionEngine/Orc/Core.h
index f8dc03923c5e8..ae826912d629f 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/Core.h
+++ b/llvm/include/llvm/ExecutionEngine/Orc/Core.h
@@ -1262,7 +1262,7 @@ class ExecutionSession {
using ErrorReporter = std::function<void(Error)>;
/// For dispatching ORC tasks (typically materialization tasks).
- using DispatchTaskFunction = std::function<void(std::unique_ptr<Task> T)>;
+ using DispatchTaskFunction = unique_function<void(std::unique_ptr<Task> T)>;
/// Construct an ExecutionSession.
///
More information about the llvm-commits
mailing list