llvm.org GIT mirror llvm / cf2cc47
Fix lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp for r273701 and the change to libObject’s getSymbolAddress() to Expected<...> . git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273740 91177308-0d34-0410-b5e6-96231b3b80d8 Kevin Enderby 4 years ago
1 changed file(s) with 6 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
129129 continue;
130130 }
131131
132 ErrorOr AddrOrErr = Sym.getAddress();
133 if (AddrOrErr.getError())
134 continue;
132 Expected AddrOrErr = Sym.getAddress();
133 if (!AddrOrErr) {
134 // TODO: Actually report errors helpfully.
135 consumeError(AddrOrErr.takeError());
136 continue;
137 }
135138 uint64_t Addr = *AddrOrErr;
136139 uint64_t Size = P.second;
137140