[all-commits] [llvm/llvm-project] 7b1f1c: [lldb] Remove 'use_synthetic' parameters in ValueO...

Raphael Isemann via All-commits all-commits at lists.llvm.org
Fri May 8 12:18:03 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7b1f1cf1cf71ed143673a981074da642cfcde56e
      https://github.com/llvm/llvm-project/commit/7b1f1cf1cf71ed143673a981074da642cfcde56e
  Author: Raphael Isemann <teemperor at gmail.com>
  Date:   2020-05-08 (Fri, 08 May 2020)

  Changed paths:
    M lldb/include/lldb/Core/ValueObject.h
    M lldb/include/lldb/Core/ValueObjectSyntheticFilter.h
    M lldb/source/API/SBValue.cpp
    M lldb/source/Core/ValueObject.cpp

  Log Message:
  -----------
  [lldb] Remove 'use_synthetic' parameters in ValueObject code

Summary:
`CalculateSyntheticValue` and `GetSyntheticValue` have a `use_synthetic` parameter
that makes the function do nothing when it's false. We obviously always pass true
to the function (or check that the value we pass is true), because there really isn't
any point calling with function with a `false`. This just removes all of this.

Reviewers: labath, JDevlieghere, davide

Reviewed By: davide

Subscribers: davide

Differential Revision: https://reviews.llvm.org/D79568




More information about the All-commits mailing list