[Orc][Kaleidoscope] Update the MainLoop code of the orc/kaleidoscope tutorials

to get rid of the duplicate prompt. NFC.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229465 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Lang Hames 2015-02-17 05:36:59 +00:00
parent 47501960ea
commit b8254a56a9
3 changed files with 12 additions and 12 deletions

View File

@ -1254,16 +1254,16 @@ static void MainLoop() {
SessionContext S(getGlobalContext());
while (1) {
#ifndef MINIMAL_STDERR_OUTPUT
std::cerr << "ready> ";
#endif
switch (CurTok) {
case tok_eof: return;
case ';': getNextToken(); break; // ignore top-level semicolons.
case ';': getNextToken(); continue; // ignore top-level semicolons.
case tok_def: HandleDefinition(S, J); break;
case tok_extern: HandleExtern(S); break;
default: HandleTopLevelExpression(S, J); break;
}
#ifndef MINIMAL_STDERR_OUTPUT
std::cerr << "ready> ";
#endif
}
}

View File

@ -1256,16 +1256,16 @@ static void MainLoop() {
SessionContext S(getGlobalContext());
while (1) {
#ifndef MINIMAL_STDERR_OUTPUT
std::cerr << "ready> ";
#endif
switch (CurTok) {
case tok_eof: return;
case ';': getNextToken(); break; // ignore top-level semicolons.
case ';': getNextToken(); continue; // ignore top-level semicolons.
case tok_def: HandleDefinition(S, J); break;
case tok_extern: HandleExtern(S); break;
default: HandleTopLevelExpression(S, J); break;
}
#ifndef MINIMAL_STDERR_OUTPUT
std::cerr << "ready> ";
#endif
}
}

View File

@ -1279,16 +1279,16 @@ static void MainLoop() {
KaleidoscopeJIT J(S);
while (1) {
#ifndef MINIMAL_STDERR_OUTPUT
std::cerr << "ready> ";
#endif
switch (CurTok) {
case tok_eof: return;
case ';': getNextToken(); break; // ignore top-level semicolons.
case ';': getNextToken(); continue; // ignore top-level semicolons.
case tok_def: HandleDefinition(S, J); break;
case tok_extern: HandleExtern(S); break;
default: HandleTopLevelExpression(S, J); break;
}
#ifndef MINIMAL_STDERR_OUTPUT
std::cerr << "ready> ";
#endif
}
}