diff options
author | Lang Hames <lhames@gmail.com> | 2016-01-12 17:04:12 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2016-01-12 17:04:12 +0000 |
commit | 1b39fcc7087480a78ef8acb06aabd13cdf702a00 (patch) | |
tree | a253eaa865b9e0fd33a9c9dfa5a538e0af4c2664 | |
parent | 6f4000e763b2848a46fe39b3d19249af388ac936 (diff) | |
download | bcm5719-llvm-1b39fcc7087480a78ef8acb06aabd13cdf702a00.tar.gz bcm5719-llvm-1b39fcc7087480a78ef8acb06aabd13cdf702a00.zip |
[Orc] Take another shot at working around the GCC 4.7 ICE in
http://lab.llvm.org:8011/builders/clang-x86_64-ubuntu-gdb-75/builds/27486
llvm-svn: 257486
-rw-r--r-- | llvm/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h | 61 |
1 files changed, 29 insertions, 32 deletions
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h b/llvm/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h index 596a0756be7..d1bbaf34137 100644 --- a/llvm/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h +++ b/llvm/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h @@ -102,47 +102,44 @@ public: uint32_t RWDataAlign) override { Unmapped.push_back(ObjectAllocs()); -// DEBUG(dbgs() << "Allocator " << Id << " reserved:\n"); + DEBUG(dbgs() << "Allocator " << Id << " reserved:\n"); if (CodeSize != 0) { - if (std::error_code EC = Client.reserveMem( - Unmapped.back().RemoteCodeAddr, Id, CodeSize, CodeAlign)) { - (void)EC; - // FIXME; Add error to poll. - llvm_unreachable("Failed reserving remote memory."); - } -// DEBUG(dbgs() << " code: " -// << format("0x%016x", Unmapped.back().RemoteCodeAddr) -// << " (" << CodeSize << " bytes, alignment " << CodeAlign -// << ")\n"); + std::error_code EC = Client.reserveMem( + Unmapped.back().RemoteCodeAddr, Id, CodeSize, CodeAlign); + // FIXME; Add error to poll. + assert(!EC && "Failed reserving remote memory."); + (void)EC; + DEBUG(dbgs() << " code: " + << format("0x%016x", Unmapped.back().RemoteCodeAddr) + << " (" << CodeSize << " bytes, alignment " << CodeAlign + << ")\n"); } if (RODataSize != 0) { - if (std::error_code EC = + std::error_code EC = Client.reserveMem(Unmapped.back().RemoteRODataAddr, Id, - RODataSize, RODataAlign)) { - (void)EC; - // FIXME; Add error to poll. - llvm_unreachable("Failed reserving remote memory."); - } -// DEBUG(dbgs() << " ro-data: " -// << format("0x%016x", Unmapped.back().RemoteRODataAddr) -// << " (" << RODataSize << " bytes, alignment " -// << RODataAlign << ")\n"); + RODataSize, RODataAlign); + // FIXME; Add error to poll. + assert(!EC && "Failed reserving remote memory."); + (void)EC; + DEBUG(dbgs() << " ro-data: " + << format("0x%016x", Unmapped.back().RemoteRODataAddr) + << " (" << RODataSize << " bytes, alignment " + << RODataAlign << ")\n"); } if (RWDataSize != 0) { - if (std::error_code EC = - Client.reserveMem(Unmapped.back().RemoteRWDataAddr, Id, - RWDataSize, RWDataAlign)) { - (void)EC; - // FIXME; Add error to poll. - llvm_unreachable("Failed reserving remote memory."); - } -// DEBUG(dbgs() << " rw-data: " -// << format("0x%016x", Unmapped.back().RemoteRWDataAddr) -// << " (" << RWDataSize << " bytes, alignment " -// << RWDataAlign << ")\n"); + std::error_code EC = + Client.reserveMem(Unmapped.back().RemoteRWDataAddr, Id, + RWDataSize, RWDataAlign); + // FIXME; Add error to poll. + assert(!EC && "Failed reserving remote memory."); + (void)EC; + DEBUG(dbgs() << " rw-data: " + << format("0x%016x", Unmapped.back().RemoteRWDataAddr) + << " (" << RWDataSize << " bytes, alignment " + << RWDataAlign << ")\n"); } } |