1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

[Orc] Update the BuildingAJIT Chapter 5 server class for the recent RPC changes.

llvm-svn: 286642
This commit is contained in:
Lang Hames 2016-11-11 21:55:25 +00:00
parent 75d16ca935
commit 524bc4c230

View File

@ -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;
}