Skip to content

Commit

Permalink
[Orc] Update the BuildingAJIT Chapter 5 server class for the recent R…
Browse files Browse the repository at this point in the history
…PC changes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286642 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
lhames committed Nov 11, 2016
1 parent cd5b334 commit 2322de6
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions examples/Kaleidoscope/BuildingAJIT/Chapter5/Server/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,18 +102,8 @@ int main(int argc, char* argv[]) {

MyServerT Server(TCPChannel, SymbolLookup, RegisterEHFrames, DeregisterEHFrames);

while (1) {
MyServerT::JITFuncId Id = MyServerT::InvalidId;
ExitOnErr(Server.startReceivingFunction(TCPChannel, (uint32_t&)Id));
switch (Id) {
case MyServerT::TerminateSessionId:
ExitOnErr(Server.handleTerminateSession());
return 0;
default:
ExitOnErr(Server.handleKnownFunction(Id));
break;
}
}
while (!Server.receivedTerminate())
ExitOnErr(Server.handleOne());

llvm_unreachable("Fell through server command loop.");
return 0;
}

0 comments on commit 2322de6

Please sign in to comment.