REPL: Support -sil-irgen.

Add a 'startElem' option to SILModule::constructSIL so that it can be used with REPL input.

Swift SVN r4519
This commit is contained in:
Joe Groff
2013-03-28 18:38:29 +00:00
parent 25e370fcce
commit 1a8b35d383
5 changed files with 34 additions and 14 deletions

View File

@@ -74,7 +74,7 @@ public:
/// Construct a SIL module from a translation unit. It is the caller's
/// responsibility to 'delete' this object.
static SILModule *constructSIL(TranslationUnit *tu);
static SILModule *constructSIL(TranslationUnit *tu, unsigned startElem);
ASTContext &getContext() const { return Context; }