1//===-- IncrementalExecutorBuilder.cpp - Executor Builder ------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// This implements the common incremental executor builder.
10//
11//===----------------------------------------------------------------------===//
12
13#include "clang/Interpreter/IncrementalExecutor.h"
14
15namespace clang {
16
17IncrementalExecutorBuilder::~IncrementalExecutorBuilder() = default;
18
19llvm::Expected<std::unique_ptr<IncrementalExecutor>>
20IncrementalExecutorBuilder::create(llvm::orc::ThreadSafeContext &TSC,
21 const clang::TargetInfo &TI) {
22 if (IE)
23 return std::move(IE);
24 return createExecutor(TSC, TI);
25}
26
27} // namespace clang
28