This is an archive of the discontinued LLVM Phabricator instance.

[Demangle] remove unused params of itaniumDemangle
ClosedPublic

Authored by nickdesaulniers on May 2 2023, 4:26 PM.

Details

Summary

No call sites use these parameters, so drop them.
Equivalent to D148940.

Diff Detail

Event Timeline

nickdesaulniers created this revision.May 2 2023, 4:26 PM
Herald added a reviewer: MaskRay. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: hiraditya. · View Herald Transcript
nickdesaulniers requested review of this revision.May 2 2023, 4:26 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 2 2023, 4:26 PM
nickdesaulniers added inline comments.May 2 2023, 4:33 PM
llvm/include/llvm/Demangle/Demangle.h
32

no one cares about status either. @MaskRay should I submit that as a second patch on top of this, or squash it into this review?

MaskRay accepted this revision.May 2 2023, 4:40 PM

LGTM to remove char *buf, size_t *n,. If a user somewhat needs the parameters, we can add another API.

llvm/lib/ProfileData/GCOV.cpp
343

llvm-cov gcov uses status.

This revision is now accepted and ready to land.May 2 2023, 4:40 PM
nickdesaulniers added inline comments.May 3 2023, 9:53 AM
llvm/lib/ProfileData/GCOV.cpp
343

Not meaningfully; all of the call sites seem confused by this terrible interface. Does returning nullptr indicate failure to demangle? Does status returning non-zero mean demangling failed? Should I free the result?

The interface is bad. It should return a std::string that's empty upon demangling failure.

https://reviews.llvm.org/D149707 is the follow up to remove status.

This revision was landed with ongoing or failed builds.May 3 2023, 9:58 AM
This revision was automatically updated to reflect the committed changes.