[Lldb-commits] [lldb] [LLDB] Add more helper functions to ValueObject class. (PR #87197)
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Mon Apr 1 12:59:46 PDT 2024
================
@@ -441,6 +441,19 @@ class ValueObject {
virtual int64_t GetValueAsSigned(int64_t fail_value, bool *success = nullptr);
+ llvm::APSInt GetValueAsAPSInt();
+
+ llvm::APFloat GetValueAsFloat();
+
+ bool GetValueAsBool();
----------------
clayborg wrote:
Do we need `GetValueAsBool()` or can we just use `GetValueAsAPSInt()` and make sure bool gets converted to a suitable integer?
https://github.com/llvm/llvm-project/pull/87197
More information about the lldb-commits
mailing list