-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
llvm-5.0: fix the build on old systems with newer GCC, enable PPC (#1…
- Loading branch information
1 parent
8cf346a
commit e6a4636
Showing
2 changed files
with
31 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Existing code fails to build on PPC: | ||
# error: could not convert 'Src->((llvm::orc::remote::OrcRemoteTargetClient<ChannelT>*)this)->callB<llvm::orc::remote::OrcRemoteTargetRPCAPI::ReadMem>(Size)' from 'Expected<vector<unsigned char,allocator<unsigned char>>>' to 'Expected<vector<char,allocator<char>>>' | ||
# Fix from: https://github.com/iains/LLVM-7-branch/blob/7.1.1-Darwin-WIP/llvm/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h | ||
|
||
--- include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h.orig 2022-08-07 10:10:02.000000000 +0545 | ||
+++ include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h 2022-08-07 09:48:41.000000000 +0545 | ||
@@ -713,7 +713,7 @@ | ||
|
||
uint32_t getTrampolineSize() const { return RemoteTrampolineSize; } | ||
|
||
- Expected<std::vector<char>> readMem(char *Dst, JITTargetAddress Src, | ||
+ Expected<std::vector<uint8_t>> readMem(char *Dst, JITTargetAddress Src, | ||
uint64_t Size) { | ||
// Check for an 'out-of-band' error, e.g. from an MM destructor. | ||
if (ExistingError) |