mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
Fix lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp for r273701
and the change to libObject’s getSymbolAddress() to Expected<...> . llvm-svn: 273740
This commit is contained in:
parent
7805d75e78
commit
806077d05c
@ -130,9 +130,12 @@ void IntelJITEventListener::NotifyObjectEmitted(
|
||||
continue;
|
||||
}
|
||||
|
||||
ErrorOr<uint64_t> AddrOrErr = Sym.getAddress();
|
||||
if (AddrOrErr.getError())
|
||||
Expected<uint64_t> AddrOrErr = Sym.getAddress();
|
||||
if (!AddrOrErr) {
|
||||
// TODO: Actually report errors helpfully.
|
||||
consumeError(AddrOrErr.takeError());
|
||||
continue;
|
||||
}
|
||||
uint64_t Addr = *AddrOrErr;
|
||||
uint64_t Size = P.second;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user