mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Will allow immediate execution through SIL-irgen when SIL-irgen actually exists. Also add NeedsOutput_{First,Last} symbols to the ActionType enum so that the insidious enum ordering significance there is more obvious.
Swift SVN r3757
28 lines
945 B
C++
28 lines
945 B
C++
//===-- Immediate.h - Entry point for swift immediate mode ----------------===//
|
|
//
|
|
// 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 is the entry point to the swift immediate mode, which takes a
|
|
// TranslationUnit, and runs it immediately using the JIT.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include <string>
|
|
|
|
namespace swift {
|
|
class ASTContext;
|
|
class TranslationUnit;
|
|
class SILModule;
|
|
|
|
void RunImmediately(TranslationUnit *TU, SILModule *SILMod = nullptr);
|
|
void REPL(ASTContext &Context);
|
|
}
|