[Target] Return an llvm::Expected from GetEntryPointAddress (NFC)
authorJonas Devlieghere <jonas@devlieghere.com>
Fri, 19 Jul 2019 00:52:08 +0000 (00:52 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Fri, 19 Jul 2019 00:52:08 +0000 (00:52 +0000)
commit0288c269689bfa7b6b90da1a1e058c9ebb6fa278
tree66979335871349d671b0f979345da8f0a984cb0e
parentcb30520555da15bced842965757b4e0a5ed772d8
[Target] Return an llvm::Expected from  GetEntryPointAddress (NFC)

Instead of taking a status and potentially returning an invalid address,
return an expected which is guaranteed to contain a valid address.

llvm-svn: 366521
lldb/include/lldb/Target/Target.h
lldb/source/Target/Target.cpp
lldb/source/Target/ThreadPlanCallFunction.cpp