Files
swift-mirror/tools/swift/Immediate.h
Joe Groff 662afeaeef Add '-sil-i' option to driver.
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
2013-01-14 02:57:04 +00:00

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);
}