This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Remove 'use_synthetic' parameters in ValueObject code
ClosedPublic

Authored by teemperor on May 7 2020, 5:01 AM.

Details

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.

Diff Detail

Event Timeline

teemperor created this revision.May 7 2020, 5:01 AM
teemperor edited the summary of this revision. (Show Details)
teemperor marked 3 inline comments as done.
teemperor added inline comments.
lldb/source/API/SBValue.cpp
139

Here we check it's true.

lldb/source/Core/ValueObject.cpp
1992

Here we check it's true for the call below.

3343

Here we check the value is true.

davide accepted this revision.May 8 2020, 9:38 AM
davide added a subscriber: davide.

LGTM

This revision is now accepted and ready to land.May 8 2020, 9:38 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMay 8 2020, 12:21 PM