[llvm] r273740 - Fix lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp for r273701
Kevin Enderby via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 24 15:38:30 PDT 2016
Author: enderby
Date: Fri Jun 24 17:38:30 2016
New Revision: 273740
URL: http://llvm.org/viewvc/llvm-project?rev=273740&view=rev
Log:
Fix lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp for r273701
and the change to libObject’s getSymbolAddress() to Expected<...> .
Modified:
llvm/trunk/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp
Modified: llvm/trunk/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp?rev=273740&r1=273739&r2=273740&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp Fri Jun 24 17:38:30 2016
@@ -130,9 +130,12 @@ void IntelJITEventListener::NotifyObject
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;
More information about the llvm-commits
mailing list