blob: 15639d4af0f980b4b4414a9b44c00b2ae6da1031 [file] [log] [blame]
//===--- Transaction.h - Incremental Compilation and Execution---*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// This file defines utilities tracking the incrementally processed pieces of
// code.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_CLANG_INTERPRETER_TRANSACTION_H
#define LLVM_CLANG_INTERPRETER_TRANSACTION_H
#include <memory>
#include <vector>
namespace llvm {
class Module;
}
namespace clang {
class DeclGroupRef;
/// The class keeps track of various objects created as part of processing
/// incremental inputs.
struct Transaction {
/// The decls created for the input.
std::vector<clang::DeclGroupRef> Decls;
/// The llvm IR produced for the input.
std::unique_ptr<llvm::Module> TheModule;
};
} // namespace clang
#endif // LLVM_CLANG_INTERPRETER_TRANSACTION_H