reland r4968, with a bugfix to avoid breaking the lexer measuring token lengths.

Original message:
SIL Parsing: add plumbing to know when we're parsing a .sil file
Enhance the lexer to lex "sil" as a keyword in sil mode.


Swift SVN r4988
This commit is contained in:
Chris Lattner
2013-04-30 00:28:37 +00:00
parent bd883975b6
commit 5b4c31dc94
10 changed files with 48 additions and 26 deletions

View File

@@ -1034,7 +1034,7 @@ public:
/// Responds to a REPL input. Returns true if the repl should continue,
/// false if it should quit.
bool handleREPLInput(REPLInputKind inputKind, llvm::StringRef Line) {
Lexer L(Line, Context.SourceMgr, nullptr);
Lexer L(Line, Context.SourceMgr, nullptr, false /*not SIL*/);
switch (inputKind) {
case REPLInputKind::REPLQuit:
return false;