[Lldb-commits] [lldb] [LLDB] Add more helper functions to ValueObject class. (PR #87197)

via lldb-commits lldb-commits at lists.llvm.org
Mon Apr 1 10:44:30 PDT 2024


================
@@ -441,6 +441,19 @@ class ValueObject {
 
   virtual int64_t GetValueAsSigned(int64_t fail_value, bool *success = nullptr);
 
+  llvm::APSInt GetValueAsAPSInt();
----------------
jimingham wrote:

Not all SBValues are representable as Int's or Floats, Bool's etc.  But I don't see any way to report errors with these new API's.

https://github.com/llvm/llvm-project/pull/87197


More information about the lldb-commits mailing list