[Lldb-commits] [PATCH] D126013: Add [opt] suffix to optimized stack frame in lldb-vscode
Greg Clayton via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu May 19 14:08:57 PDT 2022
clayborg added inline comments.
================
Comment at: lldb/tools/lldb-vscode/JSONUtils.cpp:754-755
object.try_emplace("id", frame_id);
- EmplaceSafeString(object, "name", frame.GetFunctionName());
+ bool is_optimized =
+ frame.GetFunction().IsValid() && frame.GetFunction().GetIsOptimized();
+ if (is_optimized) {
----------------
clayborg wrote:
> No need to test if the function is valid, the SBFunction::IsValid() does this already for us and will return false if it isn't valid.
I meant to say "the SBFunction::GetIsOptimized()" does this already and will return false if it isn't valid
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126013/new/
https://reviews.llvm.org/D126013
More information about the lldb-commits
mailing list