@@ -39,27 +39,27 @@ class LLVM_ABI ExecutorProcessControl {
3939 friend class ExecutionSession ;
4040public:
4141
42- // / A handler or incoming WrapperFunctionResults -- either return values from
42+ // / A handler or incoming WrapperFunctionBuffers -- either return values from
4343 // / callWrapper* calls, or incoming JIT-dispatch requests.
4444 // /
4545 // / IncomingWFRHandlers are constructible from
46- // / unique_function<void(shared::WrapperFunctionResult )>s using the
46+ // / unique_function<void(shared::WrapperFunctionBuffer )>s using the
4747 // / runInPlace function or a RunWithDispatch object.
4848 class IncomingWFRHandler {
4949 friend class ExecutorProcessControl ;
5050 public:
5151 IncomingWFRHandler () = default ;
5252 explicit operator bool () const { return !!H; }
53- void operator ()(shared::WrapperFunctionResult WFR) { H (std::move (WFR)); }
53+ void operator ()(shared::WrapperFunctionBuffer WFR) { H (std::move (WFR)); }
5454 private:
5555 template <typename FnT> IncomingWFRHandler (FnT &&Fn)
5656 : H(std::forward<FnT>(Fn)) {}
5757
58- unique_function<void (shared::WrapperFunctionResult )> H;
58+ unique_function<void (shared::WrapperFunctionBuffer )> H;
5959 };
6060
6161 // / Constructs an IncomingWFRHandler from a function object that is callable
62- // / as void(shared::WrapperFunctionResult ). The function object will be called
62+ // / as void(shared::WrapperFunctionBuffer ). The function object will be called
6363 // / directly. This should be used with care as it may block listener threads
6464 // / in remote EPCs. It is only suitable for simple tasks (e.g. setting a
6565 // / future), or for performing some quick analysis before dispatching "real"
@@ -85,7 +85,7 @@ class LLVM_ABI ExecutorProcessControl {
8585 IncomingWFRHandler operator ()(FnT &&Fn) {
8686 return IncomingWFRHandler (
8787 [&D = this ->D , Fn = std::move (Fn)]
88- (shared::WrapperFunctionResult WFR) mutable {
88+ (shared::WrapperFunctionBuffer WFR) mutable {
8989 D.dispatch (
9090 makeGenericNamedTask (
9191 [Fn = std::move (Fn), WFR = std::move (WFR)]() mutable {
@@ -219,7 +219,7 @@ class LLVM_ABI ExecutorProcessControl {
219219 // / The wrapper function should be callable as:
220220 // /
221221 // / \code{.cpp}
222- // / CWrapperFunctionResult fn(uint8_t *Data, uint64_t Size);
222+ // / CWrapperFunctionBuffer fn(uint8_t *Data, uint64_t Size);
223223 // / \endcode{.cpp}
224224 virtual void callWrapperAsync (ExecutorAddr WrapperFnAddr,
225225 IncomingWFRHandler OnComplete,
@@ -247,15 +247,15 @@ class LLVM_ABI ExecutorProcessControl {
247247 // / callable as:
248248 // /
249249 // / \code{.cpp}
250- // / CWrapperFunctionResult fn(uint8_t *Data, uint64_t Size);
250+ // / CWrapperFunctionBuffer fn(uint8_t *Data, uint64_t Size);
251251 // / \endcode{.cpp}
252- shared::WrapperFunctionResult callWrapper (ExecutorAddr WrapperFnAddr,
252+ shared::WrapperFunctionBuffer callWrapper (ExecutorAddr WrapperFnAddr,
253253 ArrayRef<char > ArgBuffer) {
254- std::promise<shared::WrapperFunctionResult > RP;
254+ std::promise<shared::WrapperFunctionBuffer > RP;
255255 auto RF = RP.get_future ();
256256 callWrapperAsync (
257257 RunInPlace (), WrapperFnAddr,
258- [&](shared::WrapperFunctionResult R) {
258+ [&](shared::WrapperFunctionBuffer R) {
259259 RP.set_value (std::move (R));
260260 }, ArgBuffer);
261261 return RF.get ();
0 commit comments