This is an archive of the discontinued LLVM Phabricator instance.

Remove raw_sha1_ostream
AcceptedPublic

Authored by teemperor on Aug 21 2020, 3:02 AM.

Details

Summary

raw_sha1_ostream was added as in 2016 as part of D16325 and the SHA1 implementation from that patch
has since then been used by a few other parts of LLVM. However, the raw_sha1_ostream class that
was also introduced by D16325 has no active users anywhere in LLVM.

The code itself looks perfectly fine, but as it's unused it doesn't seem worthwhile to make everyone
compile, maintain and run the tests for this class.

Diff Detail

Event Timeline

teemperor created this revision.Aug 21 2020, 3:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 21 2020, 3:02 AM
teemperor requested review of this revision.Aug 21 2020, 3:02 AM

I think this is fine. @mehdi_amini ?

mehdi_amini accepted this revision.Aug 21 2020, 4:28 PM

If no one found a use for this long, that's reasonable.

(in general though, removing such utility isn't always obvious to me: in many cases I would use a utility if it exists but may not actually create a generic one just for my use)

This revision is now accepted and ready to land.Aug 21 2020, 4:28 PM
llvm/include/llvm/Support/raw_sha1_ostream.h