mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
40 lines
1.1 KiB
C++
40 lines
1.1 KiB
C++
//===-- Helpers.h - frontend utility methods -----------------*- C++ -*----===//
|
|
//
|
|
// This source file is part of the Swift.org open source project
|
|
//
|
|
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
|
|
// Licensed under Apache License v2.0 with Runtime Library Exception
|
|
//
|
|
// See http://swift.org/LICENSE.txt for license information
|
|
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file contains declarations of utility methods for parsing and
|
|
// performing semantic on modules.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef SWIFT_IMMEDIATE_HELPERS_H
|
|
#define SWIFT_IMMEDIATE_HELPERS_H
|
|
|
|
#include "swift/Basic/LLVM.h"
|
|
#include <memory>
|
|
|
|
namespace llvm {
|
|
class MemoryBuffer;
|
|
}
|
|
|
|
namespace swift {
|
|
class PersistentParserState;
|
|
class REPLContext;
|
|
class SILModule;
|
|
class SourceFile;
|
|
|
|
bool appendToREPLFile(SourceFile &SF, PersistentParserState &State,
|
|
REPLContext &RC,
|
|
std::unique_ptr<llvm::MemoryBuffer> Buffer);
|
|
} // namespace swift
|
|
|
|
#endif
|