[Lldb-commits] [lldb] [LLDB] Add more helper functions to ValueObject class. (PR #87197)
Adrian Prantl via lldb-commits
lldb-commits at lists.llvm.org
Mon Apr 1 10:49:12 PDT 2024
================
@@ -441,6 +441,19 @@ class ValueObject {
virtual int64_t GetValueAsSigned(int64_t fail_value, bool *success = nullptr);
+ llvm::APSInt GetValueAsAPSInt();
----------------
adrian-prantl wrote:
if these errors matter to users then `llvm::Expected<llvm::APSInt>` would be the right choice. Otherwise std::optional is the way to go.
https://github.com/llvm/llvm-project/pull/87197
More information about the lldb-commits
mailing list