This is an archive of the discontinued LLVM Phabricator instance.

[LLDB][ClangExpression] Remove unused StructVars::m_object_pointer_type
ClosedPublic

Authored by Michael137 on Jul 8 2022, 5:32 AM.

Details

Summary

This member variable was removed a while ago in
443427357f539f5ac97e664a53aa9e50788abce9. It was previously used in
materialization code paths that have since been removed. Nowadays,
m_object_pointer_type gets set but not used anywhere.

This patch simply removes all remaining instances of it and any
supporting code.

Testing

  • API tests pass

Diff Detail

Event Timeline

Michael137 created this revision.Jul 8 2022, 5:32 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 8 2022, 5:32 AM
Michael137 requested review of this revision.Jul 8 2022, 5:32 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 8 2022, 5:32 AM

One potential functional change here would be the removal of GetFullCompilerType in the $__lldb_objc_class code path. Could probably just put it back since it's not immediately obvious how I'd test it.

aprantl accepted this revision.Jul 12 2022, 12:57 AM

Nice cleanup, thanks!

lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.h
356

I suppose the : m_result_name() is redundant?

This revision is now accepted and ready to land.Jul 12 2022, 12:57 AM
  • Default constructor for StructVars
Michael137 marked an inline comment as done.Jul 12 2022, 2:21 AM
Michael137 added inline comments.
lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.h
356

Yup!

Michael137 marked an inline comment as done.Jul 12 2022, 2:33 AM