mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
[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:
parent
47501960ea
commit
b8254a56a9
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user